ICanHaz.load
Little extension for loading templates asynchronously with ICanHaz.js and jQuery
Usage
// Global configichtemplatePath = '/assets/templates';// optionally, set a special extension (.mustache is standard)ichtemplateExtension = 'tpl'; ich;
Call ich.load
as many times as you want, the template will be only requested once.
But wait, there is an even shorter method:
ich;
Installation
Just load ICanHaz.load.js
somewhere after ICanHaz.js
and jQuery
and you're good to go.
Testing
Tests are written using jasmine
and can be executed in the browser, by browsing test/index.html
.
This project is too tiny for continuous integration imo.