BorisMoore / jquery-tmpl

The original official jQuery Templates plugin. This project was maintained by the jQuery team as an official jQuery plugin. It is no longer in active development, and has been superseded by JsRender.
3.23k stars 1.01k forks source link

Filtering when rendering arrays of primitive types #149

Open colourblind opened 13 years ago

colourblind commented 13 years ago

When rendering a template using an array of primitives as data anything that equates to zero is skipped. So while null and undefined are filtered out, so are the primitives zero and false.

It's probably easier to see it in action:

http://jsfiddle.net/dgUBH/

It's not too much hassle to wrap the values or convert them to string, but I thought you'd rather know.

rdworth commented 12 years ago

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.