igit/Mojolicious-Plugin-Mason2Renderer — Issue #1: Example 2 for Mojolicious Lite gives "invalid attribute line" error message
Author: mbrandon
Created: 2011-12-17 02:23:17+00:00
State: open

I've copied Example 2 for Mojolicious::Lite verbatim, but upon starting the app I get:

Can't load application "mason.pl": Invalid attribute line '$mytext => undef' at /Users/mcb/Projects/Web-Playground/mason/index.mc line 2

It works if I remove the <%args> section and the $mytext from the template. I'm also able to access the Mason $c object since I am able to display the Mason component root by embedding this line in my template:

Mason root_comp is <% $c->app->home %>

Here's the rendering line from my index route:
$self->render('/index', handler => "mason", mytext => "Hello world" );

I using Mojolicious 2.67 and Mason 2.15.

Thanks for your work. We have a large interface for a system processing satellite data related to monitoring ozone levels. It uses Mason, but our new platform is based on Mojolicious. The ability to combine the two might be very beneficial to salvage much of what has been previously developed.

Best wishes,
Marty Brandon