Thursday, July 16, 2009

Taking JS Templates to the next level

One of the projects I've been working on in my free time is a framework for JavaScript Templates. It began when I started to delve into the ASP.NET AJAX 4.0 Preview and read this post on Bertrand Le Roy's blog on JavaScript templates. I started playing with the preview and wanted to xsee if there was a simpler alternative to get started with. Enter John Resig's post on JavaScript Micro-Templating. I liked the idea of loading templates via a script/html tag. I took a cue from ASP.NET MVC and made a modified view system for the templates. It's a bit Frankenstein right now, but I think the idea is rather elegant. The templates are loaded dynamically from external files, and are cacheable. I'll write a proper blog post once I have a sample project to distribute with it.



Leave a Comment

Name (required)

Email optional

Home Page

Comments

RSS Feed
Blog Roll
Resources
Live Traffic Feed
Archives
Affiliates