05th Mar 2008 by Mark Turansky

HOW TO: Better JavaScript Templates

JavaScript Templates (Jst) is a pure Javascript templating engine that runs in your browser using JSP-like syntax. If that doesn’t sound familiar, check out the live working example on this site and download the code. It’s Free Open Source Software.

Better JavaScript Templates

What's next? CommentsLeave a comment Digg it Save This Page

3 Responses to “HOW TO: Better JavaScript Templates”

  1. HOW TO: Better JavaScript Templates Says:

    […] News Feeds @ LifeParticles.com wrote an interesting post today onHere’s a quick excerptHOW TO: Better JavaScript Templates Filed under Code Hints, Engineering, HOW TO, Technology JavaScript Templates (Jst) is a pure Javascript templating engine that runs in your browser using JSP-like syntax. If that doesn’t sound familiar, check out the live working example on this site and download the code. It’s Free Open Source Software. Better JavaScript Templates What’s next? Leave a comment Digg it Save This Page […]

  2. jianwu Says:

    Good Idea. I have done the similar thing, but replaced <% with some other tags as it will confuse the server side JSP engine.

    This is definately very important for AJAX development, as AJAX usually transfer data from server, we need a template engine to render the data for presentation to avoid mix the template logic inside the javascript code. JSP template provides a very clean seperation, at the same time, it still proivdes full power of a programming language.

    I found it’s much simpler to implement this kind of engine compare to using java language as javascript is a dynamic language which provides a handy “eval()” method.

  3. xor Says:

    Maybe this is of an interest: http://synodinos.wordpress.com/2008/02/22/the-way-of-client-side-templating/

Leave a Reply