Catalyst-View-Xslate
view release on metacpan or search on metacpan
lib/Catalyst/View/Xslate.pm view on Meta::CPAN
1234567891011121314151617package
Catalyst::View::Xslate;
use
Moose;
use
Encode;
use
Text::Xslate;
use
namespace::autoclean;
use
File::Find ();
our
$VERSION
=
'0.00019'
;
with
'https://metacpan.org/pod/Catalyst::Component::ApplicationAttribute">Catalyst::Component::ApplicationAttribute'
;
has
catalyst_var
=> (
is
=>
'rw'
,
lib/Catalyst/View/Xslate.pm view on Meta::CPAN
233234235236237238239240241242243244245246247248249250251252253
else
{
$res
->body(
$output
);
}
return
1;
}
sub
build_exposed_method {
my
(
$self
,
$ctx
,
$code
) =
@_
;
my
$weak_ctx
=
$ctx
;
weaken
$weak_ctx
;
return
sub
{
$self
->
$code
(
$weak_ctx
,
@_
) };
}
sub
render {
my
(
$self
,
$c
,
$template
,
$vars
) =
@_
;
$vars
=
$vars
?
$vars
:
$c
->stash;
if
(
$self
->has_expose_methods) {
( run in 0.326 second using v1.01-cache-2.11-cpan-fb7fbe3ddfd )