-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Shortcodes don’t parse variables #1089
Comments
@zachleat My apologies. I had a very insightful thought in the shower this morning; the bugs I’m finding in 11ty all relate to Liquid, and I’m using my own LiquidJS instance (v9.x). Sure enough, downgrading Liquid to use the built in version means the above issue no longer presents itself. Linking this to PR #1058 as something to check when this upgrade is merged in. |
I ran into exactly the same problem today, I'm unable to pass down variables as arguments to my shortcodes. They all resolve to I too use my own LiquidJs instance. Is there something I can do to solve this? |
I ran into this issue with 11ty 0.12.1 (also 1.0.0) and the default Liquid install. In my Will dig more into it as I have time. At this time it is not a show-stopper. |
I tested this as fixed on both 1.0 and 2.0! I’m guessing this was a duplicate of #2367 in retrospect (shipped with 1.0.2 and 2.0.0-canary.9) Thanks! |
Describe the bug
Short codes only appear to accept strings for arguments. Passing a variable returns
undefined
.To Reproduce
Steps to reproduce the behavior:
Register a new universal (or Liquid, same result) shortcode:
Use this shortcode with a string and a variable (Liquid template shown):
Build your site. The following is output:
Expected behaviour
I expected to be able to pass variables to a shortcode, and for these to be parsed as strings.
Environment:
Additional context
Not sure if this is a regression in 0.11.beta-3, or if this has always been the case, as have only started experimenting with shortcodes.
The text was updated successfully, but these errors were encountered: