Where is the jQuery template documentation?
Asked Answered
C

2

12

I cannot find the jQuery template documentation or the plugin from the jQuery site. Can anyone tell where to locate them? I tried searching, but I couldn't find the documentation. It seems the jQuery Plugin site is broken.

Concinnous answered 15/4, 2013 at 12:58 Comment(6)
Which plugin are you using?Eats
github.com/jquery/jquery-tmplLachman
@Lachman is it not in active development ? is this the same microsoft contribution to the jQuery ? or is it different ? I saw a blog post from jQuery blog that says they are officially supporting it and the data linking plugin. what is going on ?Concinnous
@MattBall I am new to this whole template thing, so I looked up and found that the jQuery-templates has official support from jQuery foundation and started looking for it... but I couldn't find it. I have no idea what should I use!!! Can you recommend any other template libraries ?Concinnous
@Concinnous it is the same thing. the blog you read is old. nothing ever came of it. a big disappointment imho.Lachman
I'd look at knockout.js as an alternative.Lachman
Z
6

jquery template is not maintained now. So the plugin has been removed from jquery plugin repository. Hence documentation is also gone. I could only find the below links for documentation. They are not perfect, but still very helpful.

  1. https://github.com/jquery-orphans/jquery-tmpl

  2. https://github.com/KanbanSolutions/jquery-tmpl

KanbanSolutions has forked the project and fixed some bugs. But they have changed some syntax. But you can refer to this documentation because functionality of Kanban custom jquery template and original jquery template is same.

For example Documentation for each for Kanban custom jquery template

{%each( index, value ) collection %}

Used to iterate over a data array, and render the content between the opening and closing template tags once for each data item.

Hence, Documentation for each for original jquery template

{{each( index, value ) collection }}

Used to iterate over a data array, and render the content between the opening and closing template tags once for each data item.

Zeller answered 14/5, 2013 at 13:43 Comment(0)
G
5

You can find it here http://web.archive.org/web/20120920065217/http://api.jquery.com/category/plugins/templates/ (followed from GitHub wiki - https://github.com/BorisMoore/jquery-tmpl/wiki)

Gaiser answered 24/1, 2014 at 14:59 Comment(1)
jquery tmpl not supported long time bitter to use another one. for example underscorejs.org/#templateSabian

© 2022 - 2024 — McMap. All rights reserved.