I am using a jsrender to show the details of my json object.
I am wondering how I can access the outside variable inside the list.
Thank you.
<script id="itemTemplate" type="text/x-jQuery-tmpl">
{{=outsideVariable}} //STRING
<div id="receipt_list_container">
{{#each receiptSummary.receipts}} //LIST
{{=formattedMonth}}
//HOW CAN I ACCESS THE OUTSIDE THE VARIABLE
{{/each}}
</div>
</script>
As I understand, this is your example: Example Scenario: Accessing parent data.