Handlebars.js is an extension to the Mustache templating language created by Chris Wanstrath. Handlebars.js and Mustache are both logicless templating languages that keep the view and the code separated like we all know they should be.
This extension turns this …
into this
Tutorial Video:
Resources this was based on:
http://www.newthinktank.com/2015/10/learn-handlebars-one-video/
More information can be found here:
https://handlebarsjs.com/
Download:
Handlebars-Example.hype.zip
Documentation
There is a JSDoc based documentation of the functions at
Code repository on GitHub
Version-History:
1.0 Initial release under MIT
1.1 Refactored code
1.2 Added hypeDocument resolver and local helper
1.3 Added more capabilities to the hypeDocument resolver
1.4 Refactored Handlebars as instances and added local variables
1.5 Set default selector per instance and update per selector
1.6 Set default data source or route data source by function
Content Delivery Network (CDN)
Latest version can be linked into your project using the following in the head section of your project:
<script src="https://cdn.jsdelivr.net/gh/worldoptimizer/HypeHandlebars/HypeHandlebars.min.js"></script>
Optionally you can also link a SRI version or specific releases.
Read more about that on the JsDelivr (CDN) page for this extension at https://www.jsdelivr.com/package/gh/worldoptimizer/HypeHandlebars
Learn how to use the latest extension version and how to combine extensions into one file at