flowaxy / templater
Flowaxy UI - templating engine
v1.0.0
2025-05-24 12:46 UTC
Requires
- php: >=8.2
- leafs/leaf: ^4.0
This package is not auto-updated.
Last update: 2025-05-25 11:28:02 UTC
README
Flowaxy UI - templating engine
📦 Installation
composer require flowaxy/templater
📦 Usage
return [ /* |-------------------------------------------------------------------------- | Template Engine [EXPERIMENTAL] |-------------------------------------------------------------------------- */ 'viewEngine' => \Flowaxy\Templater::class, /* |-------------------------------------------------------------------------- | Custom configuration method |-------------------------------------------------------------------------- */ 'config' => function ($engine, $config) { $engine::config([ 'path' => $config['views'], 'params' => [], ]); }, /* |-------------------------------------------------------------------------- | Custom rendering method |-------------------------------------------------------------------------- */ 'render' => null, /* |-------------------------------------------------------------------------- | Template engine extension |-------------------------------------------------------------------------- */ 'extend' => null, ];