Working Through a Catalyst View Rendering Problem

I’ve been adding some belated email notifications to UVFood and in the process I ran into a frustrating problem: it wasn’t working at all. … Views are for rendering pages, but Catalyst::View::Email takes already-rendered text and then emails it somewhere. … I’ve written templates for the messages I need to send using HTML::Mason, so I need to render these templates before I can send a message.

…The fix is to fully qualify the view name, ie: my $v = $c->view(‘UVFoodApp::View::Mason’); Now I’m getting the correct component.