ehough/contemplate

该软件包已被废弃,不再维护。未建议替代软件包。

使用纯PHP语法的模板库。无需学习新知识,运行速度快,兼容PHP 5.2及以上版本。

1.0.4 2013-05-30 22:20 UTC

This package is not auto-updated.

Last update: 2020-01-24 14:55:37 UTC


README

Build Status Project Status: Unsupported - The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired. Latest Stable Version License

此库不再维护。 使用纯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();