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


Catalyst-View-BK documentation  | view source Contained in the Catalyst-View-BK distribution.

Index


NAME

Top

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

DESCRIPTION

Top

Catalyst View. Implements the Bricklayer Templating engine for Catalyst

AUTHOR

Top

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

Catalyst::View::BK Configuration

Top

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

Top

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

Top

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


Catalyst-View-BK documentation  | view source Contained in the Catalyst-View-BK distribution.