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
Providing parameters for includes #254
Comments
You need to use a macro. I've actually been doing this now: IN AN INCLUDES FILE CALLED breadcrumbs.html
ON THE PAGE
Alternatively, if you can add it as an include in another way, then you can use set variable at the start and not use a variable
|
gemmaleigh
added a commit
that referenced
this issue
Oct 25, 2016
https://github.com/alphagov/govuk_template/blob/master/CHANGELOG.md - Remove external link styles (PR #231) - Remove extraneous copy of HTML5shiv that wasn’t being used (PR #254) - Update govuk_frontend_toolkit to latest version (PR #256)
gemmaleigh
added a commit
that referenced
this issue
Oct 25, 2016
https://github.com/alphagov/govuk_template/blob/master/CHANGELOG.md - Remove external link styles (PR #231) - Remove extraneous copy of HTML5shiv that wasn’t being used (PR #254) - Update govuk_frontend_toolkit to latest version (PR #256)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks,
How do I pass a parameter or variable to an include.
I have a breadcrumb I use over and over, but I want to pass a variable to it from page to page.
{% include "includes/secondary-nav.html" %}
could I add something like
{% include "includes/secondary-nav.html" var ="something" %}
Any ideas?
The text was updated successfully, but these errors were encountered: