From 778429c6ccd09bb72c7f080ac3519cc23ba640f6 Mon Sep 17 00:00:00 2001 From: David Wales Date: Tue, 17 Mar 2015 14:55:13 +1100 Subject: [PATCH 1/4] Document variable parameters for include. The documentation has been updated to demonstrate variable parameters for an include. {% include footer.html param="value" variable-param=page.variable %} --- site/_docs/templates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/_docs/templates.md b/site/_docs/templates.md index 637aeee6..65beede1 100644 --- a/site/_docs/templates.md +++ b/site/_docs/templates.md @@ -286,10 +286,10 @@ root of your source directory. This will embed the contents of

-You can also pass parameters to an include: +You can also pass parameters to an include. Note that the variable parameter is NOT surrounded with the usual liquid curly brackets when passed as a parameter. {% highlight ruby %} -{% raw %}{% include footer.html param="value" %}{% endraw %} +{% raw %}{% include footer.html param="value" variable-param=page.variable %}{% endraw %} {% endhighlight %} These parameters are available via Liquid in the include: From c83b01621945bc1aca65b168bd148fd380d4e9ef Mon Sep 17 00:00:00 2001 From: David Wales Date: Tue, 17 Mar 2015 15:02:50 +1100 Subject: [PATCH 2/4] Document variable parameters for include. The documentation has been updated to demonstrate variable parameters for an include. {% include footer.html param="value" variable-param=page.variable %} --- site/_docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_docs/templates.md b/site/_docs/templates.md index 65beede1..e833a682 100644 --- a/site/_docs/templates.md +++ b/site/_docs/templates.md @@ -286,7 +286,7 @@ root of your source directory. This will embed the contents of

-You can also pass parameters to an include. Note that the variable parameter is NOT surrounded with the usual liquid curly brackets when passed as a parameter. +You can also pass parameters to an include. Note that the variable parameter is NOT surrounded with the usual liquid curly brackets: {% highlight ruby %} {% raw %}{% include footer.html param="value" variable-param=page.variable %}{% endraw %} From 16a2cfed4956f4e4b61804ebd92c9cc5e8643fb2 Mon Sep 17 00:00:00 2001 From: David Wales Date: Wed, 18 Mar 2015 10:27:02 +1100 Subject: [PATCH 3/4] Change format from all caps to strong. --- site/_docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_docs/templates.md b/site/_docs/templates.md index e833a682..aee1498d 100644 --- a/site/_docs/templates.md +++ b/site/_docs/templates.md @@ -286,7 +286,7 @@ root of your source directory. This will embed the contents of

-You can also pass parameters to an include. Note that the variable parameter is NOT surrounded with the usual liquid curly brackets: +You can also pass parameters to an include. Note that the variable parameter is **not** surrounded with the usual Liquid curly brackets: {% highlight ruby %} {% raw %}{% include footer.html param="value" variable-param=page.variable %}{% endraw %} From b02342312b9f6ae22977a452a3bcbbbc0505ab16 Mon Sep 17 00:00:00 2001 From: David Wales Date: Wed, 18 Mar 2015 11:52:22 +1100 Subject: [PATCH 4/4] Change phrase 'variable parameter' --- site/_docs/templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_docs/templates.md b/site/_docs/templates.md index aee1498d..3e4cd8d0 100644 --- a/site/_docs/templates.md +++ b/site/_docs/templates.md @@ -286,7 +286,7 @@ root of your source directory. This will embed the contents of

-You can also pass parameters to an include. Note that the variable parameter is **not** surrounded with the usual Liquid curly brackets: +You can also pass parameters to an include. Omit the quotation marks to send a variable's value. Liquid curly brackets should not be used here: {% highlight ruby %} {% raw %}{% include footer.html param="value" variable-param=page.variable %}{% endraw %}