Catalyst::Helper::View::JSON - Helper for JSON Views


Catalyst-View-JSON documentation Contained in the Catalyst-View-JSON distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::View::JSON - Helper for JSON Views

SYNOPSIS

Top

    script/create.pl view JSON JSON

DESCRIPTION

Top

Helper for JSON Views.

METHODS

mk_compclass

SEE ALSO

Top

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper

AUTHOR

Top

Sebastian Riedel, sri@oook.de

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

Top

[% class %] - Catalyst JSON View

SYNOPSIS

Top

See [% app %]

DESCRIPTION

Top

Catalyst JSON View.

AUTHOR

Top

[% author %]

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


Catalyst-View-JSON documentation Contained in the Catalyst-View-JSON distribution.
package Catalyst::Helper::View::JSON;

use strict;

sub mk_compclass {
    my ( $self, $helper ) = @_;
    my $file = $helper->{file};
    $helper->render_file( 'compclass', $file );
}

1;

__DATA__

__compclass__
package [% class %];

use strict;
use base 'Catalyst::View::JSON';

1;