Kelp::Module::Template::XSlate
Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Kelp/Module/Template
t
.gitignore
README.md
dist.ini

README.md

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