ehough / contemplate
该软件包已被废弃,不再维护。未建议替代软件包。
使用纯PHP语法的模板库。无需学习新知识,运行速度快,兼容PHP 5.2及以上版本。
1.0.4
2013-05-30 22:20 UTC
Requires
- php: >=5.1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2020-01-24 14:55:37 UTC
README
此库不再维护。 使用纯PHP语法的模板库。无需学习新知识,运行速度快,兼容PHP 5.2及以上版本。
$template = new ehough_contemplate_impl_SimpleTemplate(); //implements ehough_contemplate_api_Template $template->setPath('/some/path/to/template.html.php'); $template->setVariable('foo', 'bar'); $template->setVariable('baz', array('one' => 'two')); echo $template->toString();