assemble / assemble.io

Website and documentation for Assemble.

Home Page:http://assemble.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use custom option in loop

mustafazaki opened this issue · comments

I created custom option of language and its not working inside loops
{{language}}
{{#withSort pages "data.navSortOrder"}}
{{langugae}}
{{#is data.showInNav true}}
<li{{#is ../../page.dest this.dest}} class="active"{{/is}}>

{{language}}


{{/is}}
{{/withSort}}

its outputs the result correctly outside withsort block but not in withsort block how can i use the option inside withsort block

@mustafazaki Thanks for the issue! If you're reporting a bug, please be sure to include:

  • The version of assemble you are using.
  • Your assemblefile.js (This can be in a gist)
  • The commandline output. (Screenshot or gist is fine)
  • What you expected to happen instead.

@assemblebot sorry for my incomplete information basically I am using grunt-assemble, in grunt task i add custom option of language by following below documentation
image

and below is the image of my grunt task

image

Thanks for the quick reply !!

@mustafazaki implementation-related questions are much better suited for stackoverflow, for discovery reasons and quantity of assemble users who will be notified when a question with the assemble tag is added.

I'm going to close this issue, but if you do create a stackoverflow question please feel free to link back here after this is closed (again, for maximum discovery). thanks