tmpl.js
The easiest string templating.
Features
- Easy data replacement in the string.
- No dependency on jQuery.
- Compatible with all browsers.
- Nanoweight helper.
Use
Use keys in double brackets to replace your data.
Simple example
'These {{something}} are so {{adjective}}!'; // These diamonds are so shiny!
With jQuery.ajax
var myTmpl = '...'; // Some template $
License
Released under the MIT license.