Skip to content

worldoptimizer/HypeHandlebars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hype Handlebars

00002|690x413 The cover artwork is not hosted in this repository and ©opyrighted by Max Ziebell

Wrapper to connects Handlebars to your Hype document (rectangles/DIV's)

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.

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
1.7 Set default rendering on scene and prepare to true and added event variables

Documentation

There is a JSDoc based documentation of the functions at https://doxdox.org/worldoptimizer/HypeHandlebars

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 https://github.com/worldoptimizer/HypeCookBook/wiki/Including-external-files-and-Hype-extensions