Mango::Catalyst::View::Text - View class for Text output
$c->view('Text');
Mango::Catalyst::View::Text renders content using Catalyst::View::TT and serves it with the following content type:
text/plain; charset=utf-8
When Mango is installed, its stock text templates are stored in:
%PERLINST%/site/lib/auto/Mango/templates/tt/text
When templates are rendered, the following directories are used:
root/templates/tt/text %PERLINST%/site/lib/auto/Mango/templates/tt/text
You can override any default template by creating a template file of the same name in your local application template directory.
If you want to use templates from a different shared directory, you can set $ENV{'MANGO_SHARE'}:
$ENV{'MANGO_SHARE'} = '/usr/local/share/Mango';
Now, the template search path will be:
root/templates/tt/html /usr/local/share/Mango/templates/tt/text
See Mango::Catalyst::View::Template for more information on changing the location of templates.
Creates plain text content, writes it to the response body, and changes the content type. There is usually no reason to call this method directly. Forward to this view instead:
$c->forward($c->view('Text'));
Mango::Catalyst::View::Template
Christopher H. Laco CPAN ID: CLACO claco@chrislaco.com http://today.icantfocus.com/blog/
To install Mango, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mango
CPAN shell
perl -MCPAN -e shell install Mango
For more information on module installation, please visit the detailed CPAN module installation guide.