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

capture tag always evaluates to a string #40

Closed
bkiers opened this issue Dec 28, 2016 · 1 comment
Closed

capture tag always evaluates to a string #40

bkiers opened this issue Dec 28, 2016 · 1 comment
Labels

Comments

@bkiers
Copy link
Owner

bkiers commented Dec 28, 2016

The contents inside a capture tag is evaluated as a block, causing it to become a string. But the following:

{% capture n %}{{ username | size }}{% endcapture %}

should be captured as a number.

@bkiers bkiers added the bug label Dec 28, 2016
@bkiers
Copy link
Owner Author

bkiers commented Dec 28, 2016

Just looked it up:

Captures the string inside of the opening and closing tags and assigns it to a variable. Variables created through {% capture %} are strings.

-- http://shopify.github.io/liquid/tags/variable/

@bkiers bkiers closed this as completed Dec 28, 2016
@bkiers bkiers added invalid and removed bug labels Dec 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant