-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Can't use key/index variable on each #112
Comments
The following code will works on default mode ( colors = ["green","red","aqua","sky","blue"]
each item in [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
p= $colors[$item] Else you can do this on js expression mode: - var colors = ["green","red","aqua","sky","blue"]
each item in [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
p= colors[item] Does it do the trick for you? |
Fatal error appears after expression change:
That appears in basic template: |
Hi, can you give me the complete pug file with indent or try to reproduce the exception on http://pug-demo.herokuapp.com/ Thanks, |
As the last error you mention is not linked to the issue title and would probably be solved with last js-phpize release, I close this issue. Please open a new one with more specific context if this error occurs again with last version. |
Hi, im trying to get index value on each but get:
Message: Use of undefined constant index - assumed 'index'
My code:
I tried to create var using
- var
,- name
andname =
but i can't get it.Is this possible?
The text was updated successfully, but these errors were encountered: