| Jifty-Plugin-Userpic documentation | Contained in the Jifty-Plugin-Userpic distribution. |
Jifty::Plugin::Userpic::View - View for the Userpic plugin
A view package for the Userpic plugin.
Outputs the image stored in 'field' of 'item'. (Both of those are set by the dispatcher)
| Jifty-Plugin-Userpic documentation | Contained in the Jifty-Plugin-Userpic distribution. |
package Jifty::Plugin::Userpic::View; use Jifty::View::Declare -base;
template 'userpic/image' => sub { my ($item,$field) = get(qw(item field)); Jifty->handler->apache->content_type("image/jpeg"); outs_raw($item->$field()); }; 1;