html 将变量参数传递给包含

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 将变量参数传递给包含相关的知识,希望对你有一定的参考价值。

<!-- 
Currently, the documentation for includes explains how to pass string parameters to includes, but gives no explanation of how to pass variable parameters to includes.

Specifically, the documentation says: 
-->

{% include footer.html param="value" %}

<!-- 
However, it doesn't explain that variables can be passed this way: 
-->

{% include footer.html param="value" variable-param=page.variable %}

以上是关于html 将变量参数传递给包含的主要内容,如果未能解决你的问题,请参考以下文章