DarwinTpl template engine
, (*1)
Php Template engine using native Php markup. No complicated or new syntax to learn., (*2)
to get started. download the DarwinTpl package., (*3)
include the DarwinTpl class file., (*4)
include(PATH_TO_DARWINTPL.'DarwinTpl.php')
Or simply using composer, (*5)
"require": { "anis2505/darwintpl":"dev-master" }
in your composer.json file., (*6)
in you script create an instance of the class, (*7)
$darwinTpl = new Darwin\DarwinTpl( TEMPLATES_ROOT_PATH );
Now you are ready to use DarwinTpl., (*8)
$darwinTpl->render("templatefile");