niklas / template
Simple html template
v1.0.1
2017-08-11 07:20 UTC
Requires
- nette/tester: ^1.7
This package is not auto-updated.
Last update: 2025-03-30 06:29:55 UTC
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