内容块可以是 text, HTML or Markdown
在主题目录下的 /content 子目录中:
用 {% content 'file.htm' %} :
{% content 'file.htm' %}
url = "/contacts" == <div class="contacts"> {% content 'contacts.htm' %} </div>
例子:
{% content 'welcome.htm' name='John' %}
显示变量:
<h1>This is a demo for {name}</h1>
更多信息 查看.
在plugin 的regist或者boot方法中:
regist
boot
View::share('site_name', 'OctoberCMS');
在页面上使用
{{site_name}}