NAME

Catalyst::View::TextForge - Text::Forge View Class

SYNOPSIS

# use the helper
script/create.pl view TextForge TextForge

# lib/MyApp/View/TextForge.pm
package MyApp::View::TextForge;

use base qw/ Catalyst::View::TextForge /;

# __PACKAGE__->config->{root} = '/path/to/template/root';
# Defaults to $catalyst->config->{root}

1;

DESCRIPTION

Use Text::Forge templates as Catalyst views.

Text::Forge templates are very similar to ERB/ASP/PHP in syntax. See the Text::Forge module for details.

The contents of the Catalyst stash are passed into the template through @_. Example template:

<% my %args = @_ %>
<h1>Hello, <%= $args{name} %><h1>
<p>
  The current time is <%= scalar localtime %>.
</p>

SEE ALSO

Catalyst, Text::Forge

AUTHOR

Maurice Aubrey maurice@cpan.org

COPYRIGHT

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