# iflow_template **Repository Path**: mkccl/iflow_template ## Basic Information - **Project Name**: iflow_template - **Description**: 基于DOM渲染的 PHP模板引擎 - **Primary Language**: PHP - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-03 - **Last Updated**: 2024-10-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: template, templateEngine, PHP ## README # iflow_template 基于DOM渲染的 PHP模板引擎 # 安装 ```shell composer require iflow/template ``` # 使用方法 > 视图文件代码 ```html 测试渲染 $test
$i
$number
$test
$test
才不是嘞
// PHP 代码块 $a = "123"; function test() { return "123123"; } echo $a.test(); ``` > PHP调用代码 ```php false, // 缓存地址 'store_path' => './runtime/template', 'view_root_path' => './view' . DIRECTORY_SEPARATOR, 'view_suffix' => 'html', 'tags' => [] ]; $template = new template($config); $html = $template -> display(" \$test ", [ 'test' => 123, 'main_css' => 'statics/css/main.css', 'type_style' => 'margin-top: 10px' ]); $html = $template -> fetch('index'); ``` 查看更多: https://www.yuque.com/youzhiyuandemao/ftorkm/zx0cp0