Skip to content

A little require.js module that uses the text plugin to get knockout templates from the server. Once the template is returned it uses the stringTemplateEngine to add it to the knockout template engine. This way templates are fetched via XHR and stored in knockout internally which means they are never added to the DOM as script tags.

License

Notifications You must be signed in to change notification settings

aranm/ko.loadTemplateUsingRequireText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This little module is used to load knockout templates from the server.

It has dependencies on knockout and the stringTemplateEngine (https://github.com/rniemeyer/SamplePresentation/blob/master/js/stringTemplateEngine.js) by (https://github.com/rniemeyer)

About

A little require.js module that uses the text plugin to get knockout templates from the server. Once the template is returned it uses the stringTemplateEngine to add it to the knockout template engine. This way templates are fetched via XHR and stored in knockout internally which means they are never added to the DOM as script tags.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published