This link has been bookmarked by 95 people . It was first bookmarked on 07 Feb 2008, by Hiroyasu Suzuki.
-
01 Oct 14
-
06 Dec 13
-
07 Feb 13
-
17 Sep 12
-
04 Sep 12
-
14 Jul 12
Peter Jacobson"jTemplates is a template engine for JavaScript.
Plugin to jQuery.
Current version: 0.8.2
Features:
- 100% in JavaScript
- precompilator
- Support JSON
- Work with Ajax
- Allow to use JavaScript code inside template
- Allow to build cascading templates
- Allow to define parameters in templates
- Live Refresh! - automatic update content from server" -
10 May 11
-
19 Oct 10
-
14 Oct 10
-
04 Aug 10
Hyung-Joo LimjTemplates - template engine in JavaScript http://ow.ly/18qc6F
– Javascript News (del_javascript) http://twitter.com/del_javascript/statuses/20284620689 -
09 Jul 10
-
05 Jul 10
-
25 Jun 10
-
16 Jun 10
-
jTemplates is a template engine for JavaScript.
-
Plugin to jQuery.
-
Features:
- 100% in JavaScript
- Work with Ajax and/or JSON
- Allow to use JavaScript code in templates
- Work with jQuery
- Allow to build cascading templates
- Allow to define parameters in templates
- Live Refresh! - automatic update content from server
- Free to commercial or non-commercial use! -
Template example:
{#template MAIN}
<div id="header">{$T.name}</div>
<table>
{#foreach $T.table as r}
{#include row root=$T.r}
{#/for}
</table>
{#/template MAIN}
{#template row}
<tr bgcolor="{#cycle values=['#AAAAEE','#CCCCFF']}">
<td>{$T.name.bold()}</td>
<td>{$T.age}</td>
<td>{$T.mail.link('mailto:'+$T.mail)}</td>
</tr>
{#/template row} -
Tags:
- template
- if..elseif..else../if
- foreach..else../for
- for..else../for
- continue, break
- include
- param
- cycle
- lderim .. rdelim
- literal -
Integration with jQuery:// set templates
jQuery jQuery.fn.setTemplate(String template, [Array includes], [Object settings]);
jQuery jQuery.fn.setTemplate(Template template);
jQuery jQuery.fn.setTemplateURL(String url, [Array includes], [Object settings]);
jQuery jQuery.fn.setTemplateElement(String elementName, [Array includes], [Object settings]);
Template jQuery.createTemplate(String template, [Array includes], [Object settings]);
Template jQuery.createTemplateURL(String url, [Array includes], [Object settings]);
Template jQuery.getTemplate(Element element);
string jQuery.processTemplateToText(Template template, [Object data], [Object parameter]);
// check if template is assigned
Number jQuery.fn.hasTemplate();
// remove template
jQuery jQuery.fn.removeTemplate();
// set parameters
jQuery jQuery.fn.setParam(String name, Object value);
// execute templates with data
jQuery jQuery.fn.processTemplate(Object data, [Object parameters]);
jQuery jQuery.fn.processTemplateURL(String url, [Object parameters], [Object options]);
// Live Refresh!
Updater jQuery.fn.processTemplateStart(String url, Array param, Integer interval, [Array args], [Object options]);
jQuery jQuery.fn.processTemplateStop();
// Debug Mode
jQuery.jTemplatesDebugMode(Boolean value);
-
-
14 May 10
-
07 Apr 10
-
21 Mar 10
-
16 Mar 10
-
06 Mar 10
-
11 Feb 10
-
01 Feb 10
-
14 Jan 10
-
08 Dec 09
-
30 Nov 09
-
18 Nov 09
-
12 Oct 09
-
05 Oct 09
-
29 Sep 09
-
04 Sep 09
-
11 Aug 09
-
31 May 09
-
22 May 09
-
17 May 09
-
28 Apr 09
-
25 Apr 09
-
10 Apr 09
-
01 Apr 09
-
09 Mar 09
-
02 Mar 09
-
19 Feb 09
-
17 Feb 09
-
20 Jan 09
-
04 Jan 09
-
31 Dec 08
trinhhung1801jTemplates is a template engine for JavaScript.
api javascripts jquery jtemplate webtemplate shortcut:jtemplate
-
24 Dec 08
-
21 Dec 08
-
05 Dec 08
-
03 Nov 08
-
25 Oct 08
-
24 Oct 08
-
23 Oct 08
-
20 Oct 08
Lindsay DonagheA plugin for jQuery that makes client side dynamic content templates. Kind of like PHP on the client-side. Great for making repeating content such as displaying an RSS feed pulled from an Ajax call. This is going to come in handy for sure.
jquery plugins javascript ui web development downloads useful codesnippets
-
14 Oct 08
Andy ThomasTemplate engine in JavaScript. Plugin to jQuery.
-
28 Sep 08
-
01 Sep 08
-
28 Jul 08
-
30 May 08
-
18 Mar 08
-
07 Feb 08
-
06 Dec 07
-
26 Oct 07
-
24 Oct 07
-
15 Oct 07
-
18 Aug 07
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.