requirejs-tpl
Plugin for RequireJS for loading template files via requirejs-text
Requirements
Assumptions
- templates must be available via same domain, in
/templates
- template files use the
.tpl
extension
Usage
/templates/hello.tpl
<p>Hello World.</p>
define(['tpl!hello'], function(tpl) {
document.write(tpl);
});