jaxon-php / jaxon-raintpl
Jaxon view renderer for the RainTpl template engine
Installs: 73
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/jaxon-php/jaxon-raintpl
Requires
- jaxon-php/jaxon-sentry: ~2.0
- rain/raintpl: >=3.0.0
Provides
This package is auto-updated.
Last update: 2024-05-28 04:21:34 UTC
README
Render RainTpl templates in Jaxon applications.
Installation
Install this package with Composer.
"require": { "jaxon-php/jaxon-raintpl": "~2.0" }
Usage
Foreach directory containing RainTpl templates, add an entry to the app.views
section in the configuration.
'app' => array( 'views' => array( 'demo' => array( 'directory' => '/path/to/demo/views', 'extension' => '.tpl', 'renderer' => 'raintpl', ), ), ),
In the application classes, this is how to render a view in this directory.
$this->view()->render('demo::/sub/dir/file');
Read the documentation to learn more about views in Jaxon applications.