Catalyst-View-Xslate

 view release on metacpan or  search on metacpan

lib/Catalyst/View/Xslate.pm  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Moose;
use Moose::Util::TypeConstraints qw(coerce from where via subtype);
use Encode;
use Scalar::Util qw/blessed weaken/;
use File::Find ();
 
our $VERSION = '0.00019';
 
extends 'https://metacpan.org/pod/Catalyst::View">Catalyst::View';
 
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

233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
    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 )