-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Add variable expansion support in shortcode params #5463
Comments
Can’t this already be solved by a simple wrapper shortcode? “vref” and “vrelref” for example. |
Yes. But it is a fairly common problem, and you it would potentially create lots of "wrapper variants" and make the content "unportable". I don't think I'm solving this unless I can find a simple and fast way to do it -- but there are obvious and useful use cases for this. |
I think I've been running into a similar issue. https://github.com/jicksta/repro-hugo-lexer-issue I'm trying to render a Hugo page from a data file that passes dynamic data into a shortcode as a parameter. Doing something like:
actually generates a lexer error at the "$" (or at the Maybe I'm missing something idiomatic about Go / Hugo templating, but shouldn't dynamic data be a supported use-case for shortcodes? More info can be found in the README of the repo linked above. Thanks btw for all the great work on Hugo so far! |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
This is still a valid request. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See 3) in twbs/bootstrap#24475 (comment)
Not sure how this would look like, but something ala Bash's variable expansion, eg.
The text was updated successfully, but these errors were encountered: