Skip to content

agoalofalife/aromatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aromatic

What is it?

This is templates with elements mustache and similar to handlebars

Written Typescript and a little bit rock and roll.

To use it is quite simple and trivial.

How to install?

npm install aromatic
Expression How to use
{{ value }} Insert the values from the object the first level
{{ !!value!! }} Insert the value of the first level with tagged
{{ value.value }} Insert nested objects, following levels
{{ #each array }} Through data loop over array of objects
{{ /each }} The end of loop
{{ #if contecxt }} If the current context is present
{{ /if }} the end conditions
{{ #else }} otherwise, if the current context does not have