
flickr/romkey




Categories
Tags
Ajax amazon apple bat blogs browser chrome Code computers david foster wallace emacs Entertainment feed feedcache fitness Food in memoriam ios iphone ipod itunes leopard Life mac macintosh macos x Music nutrition pets raspberry pi recipe security sidebar simplify software taxes toilet TV UNIX uvfood web Wordpress world of warcraft writers wtfMeta
Tag Archives: uvfood
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. Continue reading