Update docs

This commit is contained in:
Ivan Shalganov 2013-01-28 15:51:17 +04:00
parent 5632d40601
commit 2b0bf5e23b

View File

@ -22,10 +22,8 @@ Aspect templater
Создание шаблона в реальном времени: Создание шаблона в реальном времени:
```php ```php
use MF\Aspect;
$aspect = new Aspect(); $aspect = new Aspect();
$tempate = $aspect->compileCode('Hello {$user.name}! {if $user.email?} Your email: {$user.email} {/if}'); $tempate = $aspect->compileCode('Hello {$user.name}! {if $user.email?} Your email: {$user.email} {/if}');
$tempate->display($data); $tempate->display($data);
$content = $tempate->fetch($data); $content = $tempate->fetch($data);
``` ```