Skip to content

ryanrdetzel/Template-Monster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template-Monster

A small JavaScript library that loads in templates(unserscore.js, mustache.js, dust.js) asynchronously to reduce the amount of content your initial page has.

Check out the example_* files to see it in action.

Dependencies

Tips

Pass in a new filename to refresh the cache. Versioning.

templateLoader.loadTemplates([
    {name: 'test1', filename: 'template.v1.html'}
]);

// Days later you change the template...
templateLoader.loadTemplates([
    {name: 'test1', filename: 'template.v2.html'}
]);
// Forces the local storage version to refresh

About

A small JavaScript library that loads in templates(unserscore.js, mustache.js, dust.js) asynchronously to reduce the amount of content your initial page has to download.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors