Добавил макросы

This commit is contained in:
Федор Подлеснов 2015-12-10 16:09:22 +03:00
parent 7a5767f527
commit bb834a0f2d
3 changed files with 33 additions and 8 deletions

11
example3.php Normal file
View file

@ -0,0 +1,11 @@
<?php
$data = array('phedor', 'andrey');
require_once 'klein.php';
$tpl = new Klein();
$tpl->compile('template3.html');
echo $tpl->render(array('names' => $data));