I am using grunt-assemble, in grunt task I add custom option of language by following below documentation
assemble docs and below is the image of my grunt task grunt task
{{language}}
{{#withSort pages "data.navSortOrder"}}
{{langugae}}
{{#is data.showInNav true}}
<li{{#is ../../page.dest this.dest}} class="active"{{/is}}>
{{language}}
{{/is}}
{{/withSort}}
In above code language outside the withsort block is outputting the expected result but in withsort block language option isn't outputting anything
When using block helpers like
withSort, handlebars changes the depth of the data. To access the previous depth (wherelanguageis), you can use the..syntax. If you knowlanguagewill always be at the root of the context, then you can use the@rootkeyword:Also... when updating your example, I noticed that the second "language" was spelled as "langugae".