content

渲染指定类型动态内容。

可适用的内容枚举:

  • header:填充页头,仅限在layout中使用
  • footer:填充页脚,仅限在layout中使用
  • layout:填充模板内容,仅限在layout中使用
  • blocks:渲染当前 section/block 下的所有子block
{{#content content_type /}}

参数

  • content_type string: 常量枚举字符串 header footer layout blocks

例子

渲染section下的动态block

{{#content "blocks" /}}
这篇文章对你有帮助吗?