Skip to content

a mod of the text requirejs plugin to work with handlebars templates

License

Notifications You must be signed in to change notification settings

aressler38/hbs-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hbs-plugin

A RequireJS/AMD loader plugin for loading handlebars template resources.

This is based on the text plugin here: https://github.com/requirejs/text

Example

require(
    ["hbs!templates/mytemplate"],
    function(template){
        var templateConfig = {test:"test"};
        document.write(template(templateConfig));
    }
);

License

Dual-licensed -- new BSD or MIT.

About

a mod of the text requirejs plugin to work with handlebars templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published