There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Catalyst::Plugin::Widget::Base - Base class for all kind of widgets

CONSTRUCTOR

new ( $context, %attributes )

Create widget instance with current Catalyst context. First and required argument for all Catalyst::Plugin::Widget::Base subclasses must be a Catalyst context (usually $c in your controller).

METHODS

context

Returns current Catalyst application context.

render

Render widget to string (must be overriden in subclasses). This method called implicitly during widget stringification, so you can do something like:

$c->res->body( "<html>$widget</html> )