in reply to Re: Why won't my Dancer2 app render any output???
in thread Why won't my Dancer2 app render any output???
and still no output. I tried the "foo" and didn't see that either. I am getting the error:get '/login' => sub { # Display a login page; the original URL they requested is availab +le as # param('requested_path'), so could be put in a hidden field in th +e form # debug "displaying login page"; template 'login', { path => param('requested_path') }; };
But I can't tell what's causing it. When I put the debug before the "template" call, the error vanished. Curious. Also, I have seen examples with multiple engines in the config. Can you point me to an example that says only one is allowed? I had 2 in the old working version. Updates: I found that beginning with 1.3091 it is again permitted to have statement after template. I did a debug template ... and the proper "output" is in the log. Now I need to figure out where it's going...[sandbox:22720] core @2025-04-06 16:28:17> Failed to serialize content +: hash- or arrayref expected (not a simple scalar, use allow_nonref t +o allow this) at /usr/local/share/perl/5.34.0/Dancer2/Serializer/JSON +.pm line 40. in (eval 333) l. 1
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Why won't my Dancer2 app render any output???
by 1nickt (Canon) on Apr 06, 2025 at 23:27 UTC | |
by traveler (Parson) on Apr 07, 2025 at 02:23 UTC | |
by 1nickt (Canon) on Apr 07, 2025 at 10:19 UTC | |
Re^3: Why won't my Dancer2 app render any output???
by 1nickt (Canon) on Apr 06, 2025 at 23:20 UTC | |
by traveler (Parson) on Apr 06, 2025 at 23:25 UTC |