jTemplates – client-side xslt-like template mechanism

Hello again, just found this awesome JQuery plugin and I had to write a post about, it’s just incredible…
If on my previous post I talked about jLinq’s untapped potential, this jTemplates leave me speechless.
Imagine you can have a web application, that consumes JSON services and you can have an entire templating mechanism, right here, live, transforming your data to something user friendly, instantaneously?

Some concepts:

Constants:
– $T – data
– $P – parameters
– $Q – XHTML element’s attributes

Look here at a simple example of it’s operation:

You can use some statements like IF, FOR, FOREACH, PARAM, CYCLE include templates on other templates, send parameters, use js functions, use static content, comments, etc.

IF

FOR

FOREACH

INCLUDE

PARAM

CYCLE

the cycle iterates through it’s values each time the foreach statement (or for) iterates.

Parameters

Functions

Static Content

Comments

For a complete reference, go to the owner page

Enjoy!