ajaxTemplate.js is a Javascript library to produce a simple rules-driven mini-template processor within your HTML.

The intent is that when writing a page with, for example, a list of entries with an AJAX submit form, you ideally want the design of an entry in the list to be within your server-side template, and not to need constructing programatically in Javascript (let your programmers program and your designers design...)

ajaxTemplate.js lets you embed a 'blank' copy of the entry HTML segment, and do a copy-and-paste with rules-based substitution from within the response handler of your AJAX request, preserving separation of design and functionality, and furthermore keeping the design all in the same place (reusing the same template snippets that produce the populated entries in the list.)

You can find more on my GitHub page for ajaxTemplate.js.

Recent blog entries for ajaxTemplate.js

I don't appear to have written any blog entries about this project yet.

© 2009-2013 Sam Graham, unless otherwise noted. All rights reserved.