From c83b01621945bc1aca65b168bd148fd380d4e9ef Mon Sep 17 00:00:00 2001 From: David Wales Date: Tue, 17 Mar 2015 15:02:50 +1100 Subject: [PATCH] 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 %}