niklas/template
Composer 安装命令:
composer require niklas/template
包简介
Simple html template
README 文档
README
Simple html template
Example
$template = new Template("testIndex.html"); echo "Content is below the testSide, becouse the maincontent tags (%%)"; $template->set("title", "Hello"); $template->assign(["test"=>"search","test2"=>"And", "test3"=>"Replace"]); $template->append("newFile", "testSide.html"); echo $template->render();
Install
Niklas/Template is available at packagist.org
install it using composer:
composer require niklas/template
统计信息
- 总下载量: 62
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-07