An open API service indexing awesome lists of open source software.

https://github.com/kelp-framework/module-template-xslate

Text::Xslate adapter for Kelp
https://github.com/kelp-framework/module-template-xslate

hacktoberfest perl perl-kelp

Last synced: 21 days ago
JSON representation

Text::Xslate adapter for Kelp

Awesome Lists containing this project

README

          

# NAME

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

# SYNOPSIS

First ...

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

Then ...

```perl
# 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](http://search.cpan.org/perldoc?Kelp), [Text::Xslate](http://search.cpan.org/perldoc?Text::Xslate)