-
Notifications
You must be signed in to change notification settings - Fork 4
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
aranm/ko.loadTemplateUsingRequireText
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published