Rubric::Renderer - the rendering interface for Rubric
$Id: Renderer.pm,v 1.9 2005/03/17 02:55:33 rjbs Exp $
Rubric::Renderer provides a simple interface for rendering entries, entry sets, and other things collected by Rubric::WebApp.
This method registers a format type by providing a little data needed to render to it. The hashref of arguments must include content_type, used to set the MIME type of the returned ouput; and extension, used to find the primary template.
content_type
extension
This method returns a Template object, which is registered as the renderer for this type. This return value may change in the future.
This method renders the named template using the registered renderer for the given type, using the passed stash variables.
The type must be rendered with Rubric::Renderer before this method is called.
In list context, this method returns the content type and output document as a two-element list. In scalar context, it returns the output document.
Ricardo SIGNES, <rjbs@cpan.org>
<rjbs@cpan.org>
Please report any bugs or feature requests to bug-rubric@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rubric@rt.cpan.org
Copyright 2004 Ricardo SIGNES. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Rubric, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rubric
CPAN shell
perl -MCPAN -e shell install Rubric
For more information on module installation, please visit the detailed CPAN module installation guide.