Skip to content

Instantly share code, notes, and snippets.

@hashchange
hashchange / precompiled.declarative.handlebars.templates.js
Last active February 11, 2024 22:37
Precompiled.Declarative.Handlebars.Templates – a plug-in for Backbone.Declarative.Views, enabling the use of precompiled Handlebars templates.
/**
* Precompiled.Declarative.Handlebars.Templates
*
* Plug-in for Backbone.Declarative.Views, enabling the use of precompiled Handlebars templates.
*
* For defining `el`-related properties along with a precompiled template, modify the template source. Add a special
* comment to the source, just as you would in a template string. An example:
*
* <!-- data-tag-name="ul" data-class-name="list" -->
*