Where is the jQuery template documentation?

CodeWeed picture CodeWeed · Apr 15, 2013 · Viewed 14.7k times · Source

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.

Answer

Sanjeev Kumar Dangi picture Sanjeev Kumar Dangi · May 14, 2013

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.