mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Rename Cytro to Fenom
This commit is contained in:
20
docs/usage.md
Normal file
20
docs/usage.md
Normal file
@@ -0,0 +1,20 @@
|
||||
Basic usage
|
||||
===========
|
||||
|
||||
### Creating template engine
|
||||
|
||||
```php
|
||||
$fenom = Fenom::factory('/path/to/templates', '/path/to/template/cache', $options);
|
||||
|
||||
//or
|
||||
|
||||
$fenom = new Fenom(new FSProvider('/path/to/templates'));
|
||||
$fenom->setCompileDir('/path/to/template/cache');
|
||||
$fenom->setOptions($options);
|
||||
```
|
||||
|
||||
### Output template result
|
||||
|
||||
```php
|
||||
$fenom->display("template/name.tpl", $vars);
|
||||
```
|
||||
Reference in New Issue
Block a user