0.0.2 • Published 9 years ago
aromatic v0.0.2
#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 |