Jaxon view renderer for RainTpl templates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cache
src
.gitignore
.styleci.yml
LICENSE
README.md
composer.json

README.md

Jaxon View for RainTpl

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.