Render resource value inside loop in Jsrender
-
{{$localizedResource.message}}
and{{:startdate}}
inside data loop not working in jsrender/html.
Please let me know how to access localizedResource and other function variables{{for mydb.dbDataObj}} {{if (#index == 10)}} <div align="Center">{{$localizedResource.Confidential}}</div> <div><b><span class="spanHeaderDetailsRight">{{#$localizedResource.DateFrom}} : </span> <span class="spanHeaderDetailsLeft"> {{:mydb.rptHeader.startdate}}</span></b></div> {{/if}} {{/for}}
-
The
$localizedResource
is on the root context so you need to get it from there.
See jsrender documentation how to work with contexthttps://www.jsviews.com/#contextualparams
PS: See here how you can better format your posts on our forum https://guides.github.com/features/mastering-markdown/
-
Thanks