Skip to content

Instantly share code, notes, and snippets.

View webpro's full-sized avatar
👋

Lars Kappert webpro

👋
View GitHub Profile
@webpro
webpro / require-hogan.js
Created September 18, 2012 12:24
RequireJS plugin to compile templates in build process (using r.js)
/**
* RequireJS plugin to compile templates in build process (using r.js).
*
* During development, this delegates the request to the "text" plugin, and compiles the template.
* After build, the template resources are pre-compiled and in-lined in the module that depends on it.
*
* Based on https://github.com/millermedeiros/requirejs-hogan-plugin
*
* Also see http://requirejs.org/docs/plugins.html
*/