mustache
Last updated
Last updated
logic-less, templating engine handles most, basic things like conditionals
some advanced features like tags and functions
Installing
go to github repo and download:
Get template content
render the template
put html back into document
Repeated data: Loop over all the employees and get each individual object
is the value of the field is actually a function, you can use like a property . Mustache will call it and this. will be set to the data object itself.
What if we make a section with a function that takes a text and renders