-
Notifications
You must be signed in to change notification settings - Fork 142
Clean up docs & tests for variables #2301
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,5 @@ | |
| <variable name="global_variable_overriding_included_variable">Global Variable Overriding Included Variable</variable> | ||
| <variable name="global_variable">Global Variable</variable> | ||
| <variable name="page_global_variable_overriding_page_variable">Global Variable Overriding Page Variable</variable> | ||
| <variable from="variable.json"></variable> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: removed as this way of importing does not work in variables.md |
||
| <variable name="base2">2019-01-01</variable> | ||
| <variable name="formatted_date">{{ base2 | date("ddd D MMM", 10) }}</variable> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,10 @@ Page Variable with {{ global_variable }} | |
|
|
||
| **Test Page Variable and Included Variable Integrations** | ||
|
|
||
| {% set outerNunjucksVariable %} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: adding this because in |
||
| Outer Nunjucks Variable | ||
| {% endset %} | ||
|
|
||
| <include src="testPageVariablesInInclude.md" /> | ||
|
|
||
| # Heading with multiple keywords | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <variable name="example"> | ||
| To inject this HTML segment in your MarkBind files, use {{ example }} where you want to place it. | ||
| More generally, surround the segment's id with double curly braces. | ||
| </variable> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| **Outer Page Variable Should Not Leak Into Inner Pages** | ||
|
|
||
| {{ nested_page_variable or "Outer Page Variable Should Not Leak Into Inner Pages" }} | ||
| {{ outerNunjucksVariable or "Outer Page Variable Should Not Leak Into Inner Pages" }} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: updating this because it appears to be outdated. we used to have |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <variable name="example"> | ||
| To inject this HTML segment in your MarkBind files, use {{ example }} where you want to place it. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: for some reason there's no |
||
| More generally, surround the segment's id with double curly braces. | ||
| </variable> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| <variable name="example"> | ||
| To inject this HTML segment in your markbind files, use {{ example }} where you want to place it. | ||
| To inject this HTML segment in your MarkBind files, use {{ example }} where you want to place it. | ||
| More generally, surround the segment's id with double curly braces. | ||
| </variable> | ||
|
|
||
| <variable from="variables.json" /> | ||
| </variable> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| <variable name="example"> | ||
| To inject this HTML segment in your markbind files, use {{ example }} where you want to place it. | ||
| To inject this HTML segment in your MarkBind files, use {{ example }} where you want to place it. | ||
| More generally, surround the segment's id with double curly braces. | ||
| </variable> | ||
|
|
||
| <variable from="variables.json" /> | ||
| </variable> |

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: page variables no longer supported via
<variable>syntax, see #2283