Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use custom option in loop #170

Closed
mustafazaki opened this issue Feb 22, 2017 · 4 comments
Closed

How to use custom option in loop #170

mustafazaki opened this issue Feb 22, 2017 · 4 comments

Comments

@mustafazaki
Copy link

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

@assemblebot
Copy link

@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.

@mustafazaki
Copy link
Author

@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 !!

@jonschlinkert
Copy link
Member

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants