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
- Host: GitHub
- URL: https://github.com/kelp-framework/module-template-xslate
- Owner: Kelp-framework
- Created: 2013-04-16T21:53:38.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T07:42:39.000Z (over 7 years ago)
- Last Synced: 2025-10-22T07:54:44.936Z (8 months ago)
- Topics: hacktoberfest, perl, perl-kelp
- Language: Perl
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)