-
Notifications
You must be signed in to change notification settings - Fork 79
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
index doesn't work for array #230
Labels
bug
Not as expected
Comments
What version of cobalt? |
Cobalt 0.13.2 I installed with cargo |
Thanks Got it reproducing and are working on a fix and improving the error messages. |
epage
added a commit
to epage/liquid-rust
that referenced
this issue
Nov 17, 2018
The parser is pretty messed up. I have no idea why it does what it does but it has two different code paths for parsing variables. In one, it somehow was treationg `a.b` as a variable `"a.b"` and not `a["b"]`. Not sure why it broke but it now works. Fixes cobalt-org#230
epage
added a commit
to epage/liquid-rust
that referenced
this issue
Nov 17, 2018
The parser is pretty messed up. I have no idea why it does what it does but it has two different code paths for parsing variables. In one, it somehow was treationg `a.b` as a variable `"a.b"` and not `a["b"]`. Not sure why it broke but it now works. Fixes cobalt-org#230
epage
added a commit
to epage/liquid-rust
that referenced
this issue
Nov 17, 2018
The parser is pretty messed up. I have no idea why it does what it does but it has two different code paths for parsing variables. In one, it somehow was treationg `a.b` as a variable `"a.b"` and not `a["b"]`. Not sure why it broke but it now works. Fixes cobalt-org#230
Got the fix in liquid; created PR cobalt-org/cobalt.rs#551 to update cobalt to it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for example, if we use {{ collections.posts.pages[0] }}, the error occurs while build
Error: build command failed
Caused by: Failed to render content for "index.html"
Caused by: liquid: Invalid index
with:
index=collections.posts.pages
The text was updated successfully, but these errors were encountered: