A RequireJS plugin for requiring Knockout.js templates.

npm install requirejs-tpl
5 downloads in the last week
33 downloads in the last month

Template plugin for RequireJs

Notice! this plugin requires the standard text plugin.

This plugin will allow you to require templates, as employed in KnockoutJS, via the ordinary dependency syntax.


], function () {
    [... code ...]

The above will fetch the thing.ko file, and insert it into the DOM in a script tag with the id thing.

npm loves you