mcstreetguy / tempearly
此包已被废弃,不再维护。未建议替代包。
一个微型PHP模板引擎。
v0.4.2
2018-01-20 00:00 UTC
README
一个微型PHP模板引擎。
请访问完整文档以获取详细解释。
安装
$ composer require mcstreetguy/tempearly
使用
$engine = new MCStreetguy\Tempearly('path/to/templates','.tpl.html');
$engine->parse('login-template-1',array( 'my-variable' => 'Hello World!', 'another-variable' => true ));