-
Notifications
You must be signed in to change notification settings - Fork 96
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
Loop With Passed Array #163
Comments
Created PR #164 to suggest an initial way to fix this. No tests yet (happy to implement if you think this is a possible solution) and most likely does not meet any other requirements you have for this project. Of course happy to update with your feedback. |
Give a try to this usage This is my main include
This is my "sections/home.html"
And this my "partial/links-list.html"
Dont ask me but it works :P |
@adoumas thank you! |
I copied this code and I have "links is not defined" |
@adoumas you are the HERO! Do you think it's possible to increase the number of lists ? `{
and loop it like this I tried to do so but the error message says
|
Hi there!
I have three html files:
Now in index.html I'm passing json to section.html
In section.html, I'm then trying to loop over the "sections" array:
@@loop("row.html", @@sections)
Unfortunately, that doesn't work,
@@sections
is not found. I've also tried to put the sections into a json file and to pass the file name to use, but that also didn't work ;-(Am I doing this wrong? I assumed this would work since
@@if
allows to pass in another variable as well.Any ideas or workarounds? Thanks!
The text was updated successfully, but these errors were encountered: