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
In reply to Re^2: Why won't my Dancer2 app render any output???
by traveler
in thread Why won't my Dancer2 app render any output???
by traveler
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |