Rubric::Renderer - the rendering interface for Rubric


version 0.157


Rubric::Renderer provides a simple interface for rendering entries, entry sets, and other things collected by Rubric::WebApp.


This code is effectively abandonware. Although releases will sometimes be made to update contact info or to fix packaging flaws, bug reports will mostly be ignored. Feature requests are even more likely to be ignored. (If someone takes up maintenance of this code, they will presumably remove this notice.) This means that whatever version of perl is currently required is unlikely to change -- but also that it might change at any new maintainer's whim.


register_type($type => \%arg)

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.

This method returns a Template object, which is registered as the renderer for this type. This return value may change in the future.

process($template, $type, \%stash)

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 <>


This software is copyright (c) 2004 by Ricardo SIGNES.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.