Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 423 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 423 Bytes

a tiny template

A template implement which is so simple and small is inspired by handlebars.js(http://handlebarsjs.com/)

Syntax

  • {{name}}: get field value.
  • {{#each items}} ... {{/each}}: foreach items
  • {{#if age > 13}} ... {{/if}}: if age > 13 then do something

The 3 syntax forms(above) only.

License

It is licensed under the MIT license(http://opensource.org/licenses/MIT).