NAME

Kelp::Module::Template::Xslate - Template rendering via Text::Xslate for Kelp

SYNOPSIS

First ...

# conf/config.pl
{
    modules => ['Template::Xslate'],
    modules_init => {
        'Template::Xslate' => {
            ...
        }
    }
}

Then ...

# lib/MyApp.pm
sub some_route {
    my $self = shift;
    return $self->template( \'Inline <: $name :>', { name => 'template' } );
}

sub another_route {
    my $self = shift;
    return $self->template( 'filename', { bar => 'foo' } );
}

SEE ALSO

Kelp, Text::Xslate