diff --git a/docs/devGuide/design.md b/docs/devGuide/design.md index 1f83cc277b..c5c91f2b66 100644 --- a/docs/devGuide/design.md +++ b/docs/devGuide/design.md @@ -1,4 +1,6 @@ -Design +{% set title = "Design" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/devGuide/devGuide.md b/docs/devGuide/devGuide.md index b8cfd0103c..957deb45c5 100644 --- a/docs/devGuide/devGuide.md +++ b/docs/devGuide/devGuide.md @@ -1,4 +1,6 @@ -Contributing +{% set title = "Contributing" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/devGuide/projectManagement.md b/docs/devGuide/projectManagement.md index c9d3f94e7e..fbcdd70cce 100644 --- a/docs/devGuide/projectManagement.md +++ b/docs/devGuide/projectManagement.md @@ -1,4 +1,6 @@ -Project management +{% set title = "Project management" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/devGuide/settingUp.md b/docs/devGuide/settingUp.md index afd87bfd70..8717bd8304 100644 --- a/docs/devGuide/settingUp.md +++ b/docs/devGuide/settingUp.md @@ -1,4 +1,6 @@ -Setting up +{% set title = "Setting up" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/devGuide/styleGuides.md b/docs/devGuide/styleGuides.md index 8e2ecd92f3..1541535e6e 100644 --- a/docs/devGuide/styleGuides.md +++ b/docs/devGuide/styleGuides.md @@ -1,4 +1,6 @@ -Appendix: Style guides +{% set title = "Appendix: Style guides" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/devGuide/workflow.md b/docs/devGuide/workflow.md index cdd135c34e..2f2c22d02d 100644 --- a/docs/devGuide/workflow.md +++ b/docs/devGuide/workflow.md @@ -1,4 +1,6 @@ -Workflow +{% set title = "Workflow" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/devGuide/writingPlugins.md b/docs/devGuide/writingPlugins.md index 2654abaf53..a194b66a2e 100644 --- a/docs/devGuide/writingPlugins.md +++ b/docs/devGuide/writingPlugins.md @@ -1,4 +1,6 @@ -Writing Plugins +{% set title = "Writing Plugins" %} +{{ title }} + title: "{{ title }}" layout: devGuide diff --git a/docs/userGuide/addingPages.md b/docs/userGuide/addingPages.md index 9c93bfc7f3..514ddc6973 100644 --- a/docs/userGuide/addingPages.md +++ b/docs/userGuide/addingPages.md @@ -1,5 +1,6 @@ -Adding Pages -addingPages +{% set title = "Adding Pages" %} +{% set filename = "addingPages" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/authoringContents.md b/docs/userGuide/authoringContents.md index b98df03ad2..b39888ac7e 100644 --- a/docs/userGuide/authoringContents.md +++ b/docs/userGuide/authoringContents.md @@ -1,4 +1,6 @@ -Authoring Contents +{% set title = "Authoring Contents" %} +{{ title }} + title: "User Guide: {{ title }}" layout: userGuide diff --git a/docs/userGuide/components/advanced.md b/docs/userGuide/components/advanced.md index 1def9bdf02..e9177c6ab1 100644 --- a/docs/userGuide/components/advanced.md +++ b/docs/userGuide/components/advanced.md @@ -1,7 +1,12 @@ ## Advanced Tips and Tricks -^\[S\]^ -Slot +{% set slot_info_trigger %} +^\[S\]^ +{% endset %} + +{% set slot_type_info_trigger %} +Slot +{% endset %} ### Richer formatting of attributes using slots diff --git a/docs/userGuide/deployingTheSite.md b/docs/userGuide/deployingTheSite.md index 593e40bab6..b23ddcf159 100644 --- a/docs/userGuide/deployingTheSite.md +++ b/docs/userGuide/deployingTheSite.md @@ -1,5 +1,7 @@ -Deploying the Site -deployingTheSite +{% set title = "Deploying the Site" %} +{% set filename = "deployingTheSite" %} +{{ title }} + title: "User Guide: {{ title }}" layout: userGuide diff --git a/docs/userGuide/formattingContents.md b/docs/userGuide/formattingContents.md index 428ea38214..653b410bfd 100644 --- a/docs/userGuide/formattingContents.md +++ b/docs/userGuide/formattingContents.md @@ -1,5 +1,6 @@ -Formatting Contents -formattingContents +{% set title = "Formatting Contents" %} +{% set filename = "formattingContents" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/gettingStarted.md b/docs/userGuide/gettingStarted.md index bbc2baa0ee..d26426bb9b 100644 --- a/docs/userGuide/gettingStarted.md +++ b/docs/userGuide/gettingStarted.md @@ -1,4 +1,6 @@ -Getting Started +{% set title = "Getting Started" %} +{{ title }} + title: "User Guide - {{ title }}" layout: userGuide diff --git a/docs/userGuide/makingTheSiteSearchable.md b/docs/userGuide/makingTheSiteSearchable.md index f8f3686e8c..b8c6564321 100644 --- a/docs/userGuide/makingTheSiteSearchable.md +++ b/docs/userGuide/makingTheSiteSearchable.md @@ -1,5 +1,7 @@ -Making the Site Searchable -makingTheSiteSearchable +{% set title = "Making the Site Searchable" %} +{% set filename = "makingTheSiteSearchable" %} +{{ title }} + {% from "njk/common.njk" import embed with context %} diff --git a/docs/userGuide/markBindInTheProjectWorkflow.md b/docs/userGuide/markBindInTheProjectWorkflow.md index 4d8a1474f2..fccc7f4c54 100644 --- a/docs/userGuide/markBindInTheProjectWorkflow.md +++ b/docs/userGuide/markBindInTheProjectWorkflow.md @@ -1,5 +1,7 @@ -MarkBind in the Project Workflow -markBindInTheProjectWorkflow +{% set title = "MarkBind in the Project Workflow" %} +{% set filename = "markBindInTheProjectWorkflow" %} +{{ title }} + title: "User Guide: {{ title }}" layout: userGuide diff --git a/docs/userGuide/markBindSyntaxOverview.md b/docs/userGuide/markBindSyntaxOverview.md index 0f455dc203..393ae4becb 100644 --- a/docs/userGuide/markBindSyntaxOverview.md +++ b/docs/userGuide/markBindSyntaxOverview.md @@ -1,5 +1,6 @@ -MarkBind Syntax Overview -markBindSyntaxOverview +{% set title = "MarkBind Syntax Overview" %} +{% set filename = "markBindSyntaxOverview" %} +{{ title }} title: "User Guide: {{ title }} " diff --git a/docs/userGuide/reusingContents.md b/docs/userGuide/reusingContents.md index 80725e5baf..2a51288916 100644 --- a/docs/userGuide/reusingContents.md +++ b/docs/userGuide/reusingContents.md @@ -1,5 +1,6 @@ -Reusing Contents -reusingContents +{% set title = "Reusing Contents" %} +{% set filename = "reusingContents" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/settingSiteProperties.md b/docs/userGuide/settingSiteProperties.md index 6509300ec0..25a468266a 100644 --- a/docs/userGuide/settingSiteProperties.md +++ b/docs/userGuide/settingSiteProperties.md @@ -1,5 +1,6 @@ -Setting Site Properties -settingSiteProperties +{% set title = "Setting Site Properties" %} +{% set filename = "settingSiteProperties" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/syntax/boxes.mbdf b/docs/userGuide/syntax/boxes.mbdf index 919a55e376..588c6720c0 100644 --- a/docs/userGuide/syntax/boxes.mbdf +++ b/docs/userGuide/syntax/boxes.mbdf @@ -1,4 +1,4 @@ - +{% from "userGuide/components/advanced.md" import slot_info_trigger %} ## Boxes diff --git a/docs/userGuide/syntax/dates.mbdf b/docs/userGuide/syntax/dates.mbdf index 5abbc89e3e..3c74305454 100644 --- a/docs/userGuide/syntax/dates.mbdf +++ b/docs/userGuide/syntax/dates.mbdf @@ -41,9 +41,9 @@ Dates can be supplied using [page variables](../reusingContents.html#variables) Inside `variables.md` or referencing page: ``` -2020-03-06 +{% raw %}{% set date_pagevar = "2020-03-06" %}{% endraw %} ``` -2020-03-06 +{% set date_pagevar = "2020-03-06" %} {{ njcode('date_pagevar | date(format2)') }} :glyphicon-arrow-right: {{ date_pagevar | date(format2) }}
diff --git a/docs/userGuide/syntax/dropdowns.mbdf b/docs/userGuide/syntax/dropdowns.mbdf index 4eafe6f2e7..ebf21499ec 100644 --- a/docs/userGuide/syntax/dropdowns.mbdf +++ b/docs/userGuide/syntax/dropdowns.mbdf @@ -1,4 +1,4 @@ - +{% from "userGuide/components/advanced.md" import slot_info_trigger %} ## Dropdowns diff --git a/docs/userGuide/syntax/modals.mbdf b/docs/userGuide/syntax/modals.mbdf index 8faaaf193c..09563c3c5a 100644 --- a/docs/userGuide/syntax/modals.mbdf +++ b/docs/userGuide/syntax/modals.mbdf @@ -1,4 +1,4 @@ - +{% from "userGuide/components/advanced.md" import slot_info_trigger, slot_type_info_trigger %} ## Modals diff --git a/docs/userGuide/syntax/panels.mbdf b/docs/userGuide/syntax/panels.mbdf index d3226b09d5..3435ac4b2e 100644 --- a/docs/userGuide/syntax/panels.mbdf +++ b/docs/userGuide/syntax/panels.mbdf @@ -1,4 +1,4 @@ - +{% from "userGuide/components/advanced.md" import slot_info_trigger %} ## Panels diff --git a/docs/userGuide/syntax/popovers.mbdf b/docs/userGuide/syntax/popovers.mbdf index 8ceb3b2dd5..137378fa60 100644 --- a/docs/userGuide/syntax/popovers.mbdf +++ b/docs/userGuide/syntax/popovers.mbdf @@ -1,4 +1,4 @@ - +{% from "userGuide/components/advanced.md" import slot_info_trigger %} ## Popovers diff --git a/docs/userGuide/syntax/questions.mbdf b/docs/userGuide/syntax/questions.mbdf index 0dc4261c57..68cbadd665 100644 --- a/docs/userGuide/syntax/questions.mbdf +++ b/docs/userGuide/syntax/questions.mbdf @@ -1,4 +1,4 @@ - +{% from "userGuide/components/advanced.md" import slot_info_trigger, slot_type_info_trigger %} ## Questions and Quizzes @@ -150,7 +150,8 @@ Optionally, you can provide the reason for the particular option using the ` +{% set mcqQuestion %} + Each valid test input should appear at least once in a test case that doesn’t have any invalid inputs. @@ -174,7 +175,8 @@ Optionally, you can provide the reason for the particular option using the ` How do you figure out which inputs are wrong? (or correct) - + +{% endset %} html @@ -185,7 +187,8 @@ Optionally, you can provide the reason for the particular option using the ` +{% set checkboxQuestion %} + ##### Which of the following is true? @@ -199,7 +202,8 @@ Optionally, you can provide the reason for the particular option using the ` 11 / 11 = 1 - + +{% endset %} html @@ -237,7 +241,8 @@ and not others. You can provide your answer in the `answer` attribute, or similarly, the `
` slot for more expressive formatting. -
@@ -245,8 +250,8 @@ You can provide your answer in the `answer` attribute, or similarly, the `
- - + +{% endset %} html diff --git a/docs/userGuide/syntax/variables.mbdf b/docs/userGuide/syntax/variables.mbdf index 031957bcf0..42ff287361 100644 --- a/docs/userGuide/syntax/variables.mbdf +++ b/docs/userGuide/syntax/variables.mbdf @@ -6,9 +6,11 @@ -**MarkBind variables are ideal for reusing small bits of code** in multiple places; you can define a variable to represent the code bit in question and reuse it anywhere in the site by referring the variable instead of duplicating the code bit. +**Nunjucks [variables](https://mozilla.github.io/nunjucks/templating.html#set) are ideal for reusing small bits of code** in multiple places; you can define a variable to represent the code bit in question and reuse it anywhere in the site by referring to the variable instead of duplicating the code bit. +MarkBind does not aim to alter the already robust variable features of nunjucks, but provides several extensions to it. + ### Global Variables **Global variables are to be defined in the `_markbind/variables.md` file.** Each variable must have an `name` and the value can be any MarkBind-compliant code fragment. The `name` should not contain `-` and `.`. For example, `search-option` and `search.options` are not allowed. @@ -30,7 +32,7 @@ The variables declared here are available from anywhere in the code base. ```
-To include a variable value in your code, give the variable id enclosed in double curly braces. +To include a variable value in your code, give the variable id enclosed in Nunjucks' double curly braces syntax.
@@ -38,16 +40,10 @@ To include a variable value in your code, give the variable id enclosed in doubl
-#### Default values for variables - -You can also specify a default value for a variable, which is displayed when the variable is not specified in `variables.md` and by any of the [includes]({{ baseUrl }}/userGuide/reusingContents.html#the-include-tag) of the page. This is done by adding `or defaultValue` within the curly braces. - -
- -{{ icon_example }} `My name is {% raw %}{{ name or "Anonymous" }}{% endraw %}.` {{ icon_arrow_right }} My name is Anonymous. -
- + +Global variables (`_markbind/variables.md`) will take precedence over any variables set via Nunjucks' tags (e.g. `{% raw %}{% set %}{% endraw %}`). + #### Built-in Global Variables @@ -60,106 +56,7 @@ Variable | Notes | {{ icon_example }} | Output `MarkBind` | The MarkBind version in use, linked to the MarkBind website. | `Page generated by: {% raw %}{{MarkBind}}{% endraw %}` | `Page generated by:` {{ MarkBind | safe }} -### Page Variables - -**You can also declare variables for use within a single page.** These variables work exactly the same as regular variables, except that their values only apply to the page they are declared in. This can be done by using the `` tag. - -
- -{{ icon_example }} Declaring page variables: `John Doe`
- -{{ icon_example }} Using page variables: `My name is {% raw %}{{ full_name }}. This is {{ full_name }}{% endraw %}'s site.` -
- - - -These variables will not be applied to [`` files]({{ baseUrl }}/userGuide/reusingContents.html#the-include-tag). Additionally, global variables (`_markbind/variables.md`) will take precedence over any page variables. *See also: [Specifying Variables in an ``]({{ baseUrl }}/userGuide/reusingContents.html#specifying-variables-in-an-include)*. - - - -### Importing Variables - -**You can access [page variables](#page-variables) from another page by importing them.** - -
- -{{ icon_example }} Importing specific variables from `person.md` into `coverpage.md`: - -In `person.md`, -```html {.no-line-numbers} -123 Sun Avenue -Mark -123456789 -``` - -and in `coverpage.md`, - -```html {.no-line-numbers} - -``` - -{% raw %}will allow you to access the variables as per normal: `{{address}}`, `{{name}}`, `{{phone}}`.{% endraw %} - -
- -**When importing all variables, you should attach a _namespace_** to the imported variables using an `as` attributes. - -
- -{{ icon_example }} Importing all variables with namespaces: - -In `coverpage.md`, -```html {.no-line-numbers} - -``` - -{% raw %} - -| Detail | How to access -| :------------- |:------------- -| address | `{{details.address}}` -| name | `{{details.name}}` -| phone | `{{details.phone}}` - -This way, ***all*** variables in `page.md` are accessible via `{{details.}}`. -{% endraw %} - -
- - - -You can also mix the two syntaxes for importing page variables, though it is not recommended: -```html {.no-line-numbers} - -``` - -This may seem like it will import *only* `address` and `name` from `page.md` and storing them in the namespace `details`. - -However, this is a combination of *both* syntaxes above, and thus this will allow you to: - -{% raw %} -- access `address` and `name` (but NOT `phone`) with `{{address}}` and `{{name}}` -- access `address`, `name`, and `phone` with `{{details.address}}`, `{{details.name}}`, and `{{details.phone}}` -{% endraw %} - - - - - -Note that global variables (`_markbind/variables.md`) and [page variables](#page-variables) will take precedence over any imported variables. - -This also applies for namespaces {{ icon_arrow_right }} for instance, in the earlier example, `details` is treated as the variable name and is subject to the same rules as other variables, such as global variables taking precedence, and later declarations overriding previous ones: - -```html {.no-line-numbers} - - -``` - -In this case, all the variables in `title.md` are not accessible, as they are overwritten with the variables from `index.md`. - - - -#### Importing variables from other external file formats +### Importing variables from other external file formats You can also source variables from external files using MarkBind's {%raw%}`{% ext varName = "filepathToFile" %}`{%endraw%} Nunjucks extension. This is useful if you have external datasets you want to display in your site! @@ -221,103 +118,6 @@ Student Number | Score | Rank Only `.json` files are supported for now. - - -You could also have your variables defined in a JSON file to define multiple variables in a more concise manner. - -{{ icon_example }} -globally scoped variables `variables.md`: -```html {.no-line-numbers} - -``` - -`variables.json`: -```json {.no-line-numbers} -{ - "variable1": "This is the first variable", - "variable2": "This is the second variable" -} -``` - -Variables defined in a `.json` file will be scoped according to where it is being referenced. Json variables referenced in `variables.md` -would be globally scoped like other global variables in that file. - -{{ icon_example }} -locally scoped variables in `index.md`: -```html - -``` - -In this case, json variables referenced within `index.md` would be a page variable accessible within the page `index.md`. - - - -### Tips and Tricks for variables - -
- - -{% raw %} -This variable uses a built-in variable:
-`{{ timestamp }}` - -Here, the second variable will be assigned the contents of the first variable.
-`This is the first variable.`
-`{{ first }}`
- -This will not work, as the `fourth` variable is declared _below_ the line that refers to it.
-`{{ fourth }}` :x:
-`This is the fourth variable.` -{% endraw %} - -
-
- - -MarkBind uses a patched version of the excellent [htmlparser2](https://github.com/fb55/htmlparser2) that allows `` tags -to contain any content - even incomplete or malformed html! - -{{ icon_example }} You can use this to build html from incomplete html code snippets: - -```html {.no-line-numbers} -
-
-
-``` - -And to use it: - -
-
- -
- -{{ icon_example }} -{% raw %}`{{ front_center | safe }} centered {{ back | safe }}`{% endraw %} {{icon_arrow_right}} {.my-2} - -
- -{{ front_center | safe }} centered {{ back | safe }} - -
- - -{{ icon_example }} -{% raw %}`{{ front_right | safe }} right aligned {{ back | safe }}`{% endraw %} {{icon_arrow_right}} {.my-2} - -
- -{{ front_right | safe }} right aligned {{ back | safe }} - -
- - - -Remember to also use the `safe` nunjucks filter when rendering your variables as raw html! - - - - @@ -330,10 +130,5 @@ Global variables: `The year was {% raw %}{{ year }}{% endraw %}.` -Page variables:
-`John Doe`{.html} - -`The name was {% raw %}{{ full_name }}{% endraw %}.` -
diff --git a/docs/userGuide/templates.md b/docs/userGuide/templates.md index 0a9fbfe256..763155408c 100644 --- a/docs/userGuide/templates.md +++ b/docs/userGuide/templates.md @@ -1,4 +1,6 @@ -Templates +{% set title = "Templates" %} +{{ title }} + title: "User Guide: {{ title }}" layout: userGuide diff --git a/docs/userGuide/themes.md b/docs/userGuide/themes.md index f18e2ae872..7240fc8df9 100644 --- a/docs/userGuide/themes.md +++ b/docs/userGuide/themes.md @@ -1,5 +1,7 @@ -Themes -themes +{% set title = "Themes" %} +{% set filename = "themes" %} +{{ title }} + title: "User Guide: {{ title }}" layout: userGuide diff --git a/docs/userGuide/tipsAndTricks.md b/docs/userGuide/tipsAndTricks.md index a5f9b9d4b3..3c69945c27 100644 --- a/docs/userGuide/tipsAndTricks.md +++ b/docs/userGuide/tipsAndTricks.md @@ -1,4 +1,5 @@ -Tips & Tricks +{% set title = "Tips & Tricks" %} +{{ title }} title: "User Guide: {{ title | safe }}" diff --git a/docs/userGuide/tweakingThePageStructure.md b/docs/userGuide/tweakingThePageStructure.md index ddc5970bf2..0807930537 100644 --- a/docs/userGuide/tweakingThePageStructure.md +++ b/docs/userGuide/tweakingThePageStructure.md @@ -1,5 +1,6 @@ -Tweaking the Page Structure -tweakingThePageStructure +{% set title = "Tweaking the Page Structure" %} +{% set filename = "tweakingThePageStructure" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/usingComponents.md b/docs/userGuide/usingComponents.md index d5969fdf1b..ad2e038b34 100644 --- a/docs/userGuide/usingComponents.md +++ b/docs/userGuide/usingComponents.md @@ -1,5 +1,6 @@ -Using Components -usingComponents +{% set title = "Using Components" %} +{% set filename = "usingComponents" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/usingHtmlJavaScriptCss.md b/docs/userGuide/usingHtmlJavaScriptCss.md index 9a26ed33b4..ce5f65082c 100644 --- a/docs/userGuide/usingHtmlJavaScriptCss.md +++ b/docs/userGuide/usingHtmlJavaScriptCss.md @@ -1,5 +1,6 @@ -Using HTML, JavaScript, CSS -usingHtmlJavaScriptCss +{% set title = "Using HTML, JavaScript, CSS" %} +{% set filename = "usingHtmlJavaScriptCss" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/usingPlugins.md b/docs/userGuide/usingPlugins.md index 7ddb6d80b5..6d38b4dcd5 100644 --- a/docs/userGuide/usingPlugins.md +++ b/docs/userGuide/usingPlugins.md @@ -1,5 +1,6 @@ -Using Plugins -usingPlugins +{% set title = "Using Plugins" %} +{% set filename = "usingPlugins" %} +{{ title }} title: "User Guide: {{ title }}" diff --git a/docs/userGuide/workingWithSites.md b/docs/userGuide/workingWithSites.md index e2930a0bf7..7349cbb538 100644 --- a/docs/userGuide/workingWithSites.md +++ b/docs/userGuide/workingWithSites.md @@ -1,4 +1,6 @@ -Working with Sites +{% set title = "Working with Sites" %} +{{ title }} + title: "User Guide: {{ title }}" layout: userGuide diff --git a/packages/cli/test/functional/test_site/expected/index.html b/packages/cli/test/functional/test_site/expected/index.html index c171b2122a..e04978b424 100644 --- a/packages/cli/test/functional/test_site/expected/index.html +++ b/packages/cli/test/functional/test_site/expected/index.html @@ -180,53 +180,18 @@

Test

arrayVarItem1

arrayVarItem2

nestedVarValue

-

Json Variable

-
front back
-

Json Variable can be referenced Referencing jsonVar1: Json Variable can be referenced

Variables that reference another variable

This variable can be referenced.

References can be several levels deep.

-

Page Variable

-
-
-

Page Variable Json Variable

-

Page Variable with HTML and MD

-
-

Page Variable with HTML and Markdown

-

Nested Page Variable

-
- -
-
- Nested Page Variable -

Page Variable with Global Variable

-
- Page Variable with Global Variable -

Page Variable referencing Page Variable

-
- Page Variable referencing Page Variable -

Global Variable overriding Page Variable

-
- Global Variable Overriding Page Variable +

Global Variables can be referenced in {% set %}

+

Page Variable with Global Variable

+

Global Variables should override {% set %}

+

Global Variable Overriding Page Variable

Test Page Variable and Included Variable Integrations

-
-

Explicitly Included Page Variable

-

Explicitly Included Page Variable

-

Inner Page Variable Should Not Be Overridden by Outer Page Variable

-
- Inner Page Variable Should Not Be Overridden by Outer Page Variable

Outer Page Variable Should Not Leak Into Inner Pages

Outer Page Variable Should Not Leak Into Inner Pages

-

Included Variable Overriding Page Variable

-
- Included Variable Overriding Page Variable -

Page Variable Referencing Included Variable

-
- Page Variable Referencing Included Variable
-

Variables for includes should not be recognised as page variables, hence, there should be no text between this

-

and this.

Heading with multiple keywords

keyword 1 keyword 2

@@ -404,8 +369,6 @@

Feature list

This is a page from another Markbind site. The purpose of this page is to ensure that reuse works as expected. All the following images should display correctly.

-

Some variables:

-

IMG tags: @@ -430,7 +393,6 @@

Feature list

-

Include segment from another Markbind site

@@ -556,6 +518,8 @@

Feature list

Test missing variable with default

Missing Variable

+

Variables for includes should not be recognised as page variables, hence, there should be no text between this

+

and this.

Included variables should not leak into other files

Should be blank:

@@ -607,7 +571,7 @@

-