Переменные через точку
This commit is contained in:
parent
88fc338b55
commit
a993c96f33
3 changed files with 57 additions and 20 deletions
|
|
@ -2,8 +2,11 @@
|
|||
|
||||
require_once 'klein.php';
|
||||
|
||||
echo Klein::render('index.html', array(
|
||||
$tpl = new Klein();
|
||||
$tpl->compile('index.html');
|
||||
|
||||
echo $tpl->render(array(
|
||||
'style' => array('style.css'),
|
||||
'script' => array('script.js'),
|
||||
'script' => array(array('name' => 'script1.js'), array('name' => 'script2.js')),
|
||||
'content' => 'test'
|
||||
));
|
||||
Loading…
Add table
Add a link
Reference in a new issue