BorisMoore / jsrender

A lightweight, powerful and highly extensible templating engine. In the browser or on Node.js, with or without jQuery.
http://www.jsviews.com
MIT License
2.67k stars 339 forks source link

How to use 'contentCtx' in jsRender without jsViews #315

Closed Dineshkanin closed 7 years ago

BorisMoore commented 7 years ago

I will be adding a few documentation topics soon for creating custom tags, both in JsRender and JsViews, including 'contentCtx'.

Meantime, there are several unit tests available showing examples of its use:

https://github.com/BorisMoore/jsrender/blob/master/test/unit-tests/tests-jsrender-no-jquery.js#L2162-L2264

BorisMoore commented 6 years ago

Documention was added for this some time back. http://www.jsviews.com/#tagsapi@contentctx. (See "Specifying data context within tag content: the contentCtx option")