I'm trying to customize the Zendesk support page Copenhagen theme. There it uses HandlebarsJS for templating the pages and components. What I need is to import a JSON/JS file containing an array to show a list of items.
{{#each assets 'arrayfile.list'}}
<div>{{title}}</div>
{{/each}}
I have tried as above but it showed an error saying
..ch assets 'arrayfile.list' }} .. is not permitted in this context
How do I import and use the asset text file for the above mentioned code block?
arrayfile is the file name and the list is the array inside the file.