Добавил макросы
This commit is contained in:
parent
7a5767f527
commit
bb834a0f2d
3 changed files with 33 additions and 8 deletions
11
example3.php
Normal file
11
example3.php
Normal 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));
|
||||
Loading…
Add table
Add a link
Reference in a new issue