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 %}
This commit is contained in:
parent
778429c6cc
commit
c83b016219
|
@ -286,7 +286,7 @@ root of your source directory. This will embed the contents of
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
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 %}
|
{% highlight ruby %}
|
||||||
{% raw %}{% include footer.html param="value" variable-param=page.variable %}{% endraw %}
|
{% raw %}{% include footer.html param="value" variable-param=page.variable %}{% endraw %}
|
||||||
|
|
Loading…
Reference in New Issue