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

Context lookup when is not alphanumeric. #17

Open
eloycoto opened this issue Nov 26, 2019 · 0 comments · May be fixed by #18
Open

Context lookup when is not alphanumeric. #17

eloycoto opened this issue Nov 26, 2019 · 0 comments · May be fixed by #18

Comments

@eloycoto
Copy link

Hi,

Using this template, if the context for the render has a key with a non-alphanumeric char, it will fail and it'll not render at all. Is there any way to render this?

Example:

context = {}
context["test/foo"] = "ooo"
context.foo = "123"

local Liquid = require 'liquid'

-- template to render
local document = 'hi {{foo}} :: {{- test/foo -}}'
local template = Liquid.Template:parse(document)

Where the key test/foo is not valid and it returns an exception. Is there any way to retrieve this info?

Regards

@eloycoto eloycoto changed the title Contenxt lookup when is not alphanumeric. Context lookup when is not alphanumeric. Nov 26, 2019
eloycoto added a commit to eloycoto/liquid-lua that referenced this issue Jan 15, 2020
@eloycoto eloycoto linked a pull request Jan 15, 2020 that will close this issue
eloycoto added a commit to eloycoto/liquid-lua that referenced this issue Jan 15, 2020
eloycoto added a commit to eloycoto/liquid-lua that referenced this issue Jan 15, 2020
eloycoto added a commit to eloycoto/liquid-lua that referenced this issue Jan 15, 2020
eloycoto added a commit to 3scale/liquid-lua that referenced this issue Jan 17, 2020
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

Successfully merging a pull request may close this issue.

1 participant