mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
提升template类测试覆盖率,修正include标签传变量的错误 ,以$开头表示传的是变量。
This commit is contained in:
11
tests/thinkphp/library/think/extend.html
Normal file
11
tests/thinkphp/library/think/extend.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{layout name="layout" replace="[__REPLACE__]" /}
|
||||
<div>
|
||||
{include file="include" name="$info.name" value="$info.value" /}
|
||||
{block name="main"}
|
||||
main
|
||||
{/block}
|
||||
{literal}
|
||||
{$name}
|
||||
{/literal}
|
||||
<?php echo 'php code'; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user