The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::View::BK - Catalyst View for Bricklayer::Templater

DESCRIPTION

Catalyst View. Implements the Bricklayer Templating engine for Catalyst

AUTHOR

Jeremy Wall <Zaphar> (Jeremy@marzhillstudios.com)

Catalyst::View::BK Configuration

Bricklayer attempts to use sane defaults so in reality you don't need to specify anything here if you don't want to.

If you do want to override the defaults then there are two configuration values you can override. The Tag Identifier and the Template Extension.

    APP->config(
        name     => 'APP',
        root     => APP->path_to('root');,
        'View::BK' => {
            # any BK configurations items go here
           'bk_ext' => 'txml',
           'bk_tag_id' => 'BK'
        },
    );
 

Methods

render

Allows you to render a template and retrieve the result. It also allows you to specify the arguments passed to the template engine and to override the tag id by setting the $c->stash->{bk_tag_id} parameter before calling it.

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.