| 1 | package Catalyst::Helper::View::HTML::Mason; | ||
| 2 | 2 | our $AUTHORITY = 'cpan:FLORA'; | |
| 3 | # ABSTRACT: Helper for L<Catalyst::View::HTML::Mason> views | ||
| 4 | 2 | $Catalyst::Helper::View::HTML::Mason::VERSION = '0.19'; | |
| 5 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | |||
| 9 | 1 | ▶ | sub mk_compclass { |
|
Subroutine
mk_compclass: called CC=1 SCAR=0.0
Pod
documented
| |||
| 10 | 1 | my ($self, $helper) = @_; | |
| 11 | 1 | my $file = $helper->{file}; | |
| 12 | 1 | (my $template = do { local $/; <DATA> }) =~ s/^\s\s//g; | |
| 13 | 1 | $helper->render_file_contents($template, $file); | |
| 14 | } | ||
| 15 | |||
| 16 | |||
| 17 | 2 | 1; | |
| 18 | |||
| 19 | =pod | ||
| 20 | |||
| 21 | =encoding UTF-8 | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Catalyst::Helper::View::HTML::Mason - Helper for L<Catalyst::View::HTML::Mason> views | ||
| 26 | |||
| 27 | =head1 SYNOPSIS | ||
| 28 | |||
| 29 | script/create.pl view Mason HTML::Mason | ||
| 30 | |||
| 31 | =head1 METHODS | ||
| 32 | |||
| 33 | =head2 mk_compclass | ||
| 34 | |||
| 35 | =head1 SEE ALSO | ||
| 36 | |||
| 37 | L<Catalyst::View::HTML::Mason>, L<Catalyst::Helper> | ||
| 38 | |||
| 39 | =head1 AUTHORS | ||
| 40 | |||
| 41 | =over 4 | ||
| 42 | |||
| 43 | =item * | ||
| 44 | |||
| 45 | Florian Ragwitz <rafl@debian.org> | ||
| 46 | |||
| 47 | =item * | ||
| 48 | |||
| 49 | Sebastian Willert <willert@cpan.org> | ||
| 50 | |||
| 51 | =item * | ||
| 52 | |||
| 53 | Robert Buels <rbuels@cpan.org> | ||
| 54 | |||
| 55 | =back | ||
| 56 | |||
| 57 | =head1 COPYRIGHT AND LICENSE | ||
| 58 | |||
| 59 | This software is copyright (c) 2015 by Florian Ragwitz. | ||
| 60 | |||
| 61 | This is free software; you can redistribute it and/or modify it under | ||
| 62 | the same terms as the Perl 5 programming language system itself. | ||
| 63 | |||
| 64 | =cut | ||
| 65 | |||
| 66 | __DATA__ | ||