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

What does evalValue do? #58

Closed
tim-phillips opened this issue Jan 13, 2018 · 2 comments
Closed

What does evalValue do? #58

tim-phillips opened this issue Jan 13, 2018 · 2 comments

Comments

@tim-phillips
Copy link

I've looked at the code but I still can't figure out what Liquid.evalValue() does.

@harttle
Copy link
Owner

harttle commented Jan 13, 2018

Liquid.evalValue() calls the parser and render for a Liquid output (which is delimited by {{ and }}). For example, it transforms a string like "xx" | capitalize to XX. Hope these test cases make it clear for you: https://github.com/harttle/liquidjs/blob/master/test/render.js#L53-L65

It should have been named to evalOutput.

@tim-phillips
Copy link
Author

Thanks for the explanation and for pointing me to tests, I'll take a look there.

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

2 participants