This book contains every handlebars features and example, you can find working example code for both handlebars.js and lightncandy
Mustache is a logic-less template syntax. It can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object.
Handlebars.js is an extension to the Mustache templating language created by Chris Wanstrath.
LightnCandy is an extremely fast PHP implementation of handlebars and mustache.
My name is
and I am years old.
{
"name": "John",
"age": 18
}
My name is John and I am 18 years old.
You may use keyboard to navigate this book fast:
References
or See Also...
.codes
Sample output
Different output
Error output
partial_name | partial template |
---|---|
partial_name2 | partial template... |