mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
提高模板解析的时候<literal>标签的优先级
This commit is contained in:
@@ -268,6 +268,8 @@ class Template
|
||||
if (empty($content)) {
|
||||
return;
|
||||
}
|
||||
// 替换literal标签内容
|
||||
$this->parseLiteral($content);
|
||||
// 解析继承
|
||||
$this->parseExtend($content);
|
||||
// 解析布局
|
||||
@@ -276,8 +278,6 @@ class Template
|
||||
$this->parseInclude($content);
|
||||
// 检查PHP语法
|
||||
$this->parsePhp($content);
|
||||
// 替换literal标签内容
|
||||
$this->parseLiteral($content);
|
||||
|
||||
// 获取需要引入的标签库列表
|
||||
// 标签库只需要定义一次,允许引入多个一次
|
||||
|
||||
Reference in New Issue
Block a user