Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Unable to use capture tag #1

Closed
phicc opened this issue Nov 3, 2014 · 6 comments
Closed

Unable to use capture tag #1

phicc opened this issue Nov 3, 2014 · 6 comments

Comments

@phicc
Copy link

phicc commented Nov 3, 2014

I'm currently using assemble-liquid to use some jekyll based liquid templates within assemble. When attempting to use the capture block, I'm unable to reference the created variable. Currently being used within a .md file, but the issue persists with any file. Any help would be great.

Code:

{% capture foo %}Foo{% endcapture %}
<h1>{{ foo }}</h1>

Results in:

<h1></h1>

When rendered.

@mrcljx
Copy link
Owner

mrcljx commented Nov 3, 2014

What is your liquid-node version?

@phicc
Copy link
Author

phicc commented Nov 3, 2014

I just updated it to 2.1.3 after I first noticed the issue while using the older version of liquid-node and the problem still persists.

@mrcljx
Copy link
Owner

mrcljx commented Nov 3, 2014

Ah, allright. This seems to be related to petkaantonov/bluebird#339. I guess they changed the behavior at some point.

@phicc
Copy link
Author

phicc commented Nov 3, 2014

Ah I see. Any thoughts on a solution?

@mrcljx
Copy link
Owner

mrcljx commented Nov 3, 2014

I fixed this in sirlantis/liquid-node@38b3fed0bad95be7d797f497cd7a45e7ee34c1d4 and the fix is available in liquid-node 2.1.4.

@mrcljx mrcljx closed this as completed Nov 3, 2014
@phicc
Copy link
Author

phicc commented Nov 3, 2014

Great! Thanks for the rapid reply

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants