mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Update docs
This commit is contained in:
parent
5632d40601
commit
2b0bf5e23b
@ -22,10 +22,8 @@ Aspect templater
|
||||
Создание шаблона в реальном времени:
|
||||
|
||||
```php
|
||||
use MF\Aspect;
|
||||
$aspect = new Aspect();
|
||||
$tempate = $aspect->compileCode('Hello {$user.name}! {if $user.email?} Your email: {$user.email} {/if}');
|
||||
|
||||
$tempate->display($data);
|
||||
$content = $tempate->fetch($data);
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user