166166 < header >
167167 < h1 > micro-template.js</ h1 >
168168 < p class ="subtitle "> A minimal, blazing fast JavaScript template engine for hackers.</ p >
169+ < div style ="margin:1em 0 0.5em 0; ">
170+ < img src ="https://img.shields.io/npm/v/micro-template.svg?style=flat-square " alt ="npm version "
171+ style ="vertical-align:middle; margin-right:8px; ">
172+ < img src ="https://img.shields.io/github/stars/cho45/micro-template.js?style=flat-square&label=GitHub+Stars "
173+ alt ="GitHub stars " style ="vertical-align:middle; margin-right:8px; ">
174+ < img src ="https://img.shields.io/npm/l/micro-template.svg?style=flat-square " alt ="MIT License "
175+ style ="vertical-align:middle; ">
176+ </ div >
169177 </ header >
170178 < section class ="features ">
171179 < h2 > Features</ h2 >
@@ -177,16 +185,8 @@ <h2>Features</h2>
177185 </ ul >
178186 </ section >
179187 < section class ="usage ">
180- < h2 > Usage Example </ h2 >
188+ < h2 > Getting Started </ h2 >
181189 < div class ="usage-blocks ">
182- < div class ="usage-block ">
183- < h3 > Basic</ h3 >
184- < pre > < code class ="language-js "> import { template } from 'micro-template';
185-
186- const result = template('<div><%= message %></div>', { message: 'Hello, inline!' });
187- console.log(result); // <div>Hello, inline!</div>
188- </ code > </ pre >
189- </ div >
190190 < div class ="usage-block ">
191191 < h3 > In HTML</ h3 >
192192 < pre > < code class ="language-html "> <script type="application/x-template" id="tmpl1">
@@ -200,6 +200,7 @@ <h3>In HTML</h3>
200200 </ div >
201201 < div class ="usage-block ">
202202 < h3 > In Node.js</ h3 >
203+ < pre > < code > npm install micro-template</ code > </ pre >
203204 < pre > < code class ="language-js "> import fs from 'node:fs';
204205import { template } from 'micro-template';
205206
0 commit comments