Problem with dancer_response Dancer2::Test
My test scripts are failing after a call like this: my $response = dancer_response POST => '/private/affiliate/login.html', { params => { ... }, }; What's happening is that the response comes back with $response->status == 200, as expected, but $response->content comes back as an uninterpolated layout file: ... <body> <% content %> <div id="footer"> Powered by <a href="http://perldancer.org/">Dancer</a> <% dancer_version %> </div> ... I've tried walking through this in the Perl debugger, but I keep losing my way. -- Jeff Boes <>< jeff@endpoint.com 269-408-0811
On 06/25/2013 04:51 PM, Jeff Boes wrote:
My test scripts are failing after a call like this:
my $response = dancer_response POST => '/private/affiliate/login.html', { params => { ... }, };
What's happening is that the response comes back with $response->status == 200, as expected, but $response->content comes back as an uninterpolated layout file:
... <body> <% content %>
Okay, mystery solved (I guess): The <% %> syntax changed to [% %] while I wasn't looking ... sorry for making that error! -- Jeff Boes <>< jeff@endpoint.com 269-408-0811
participants (1)
-
Jeff Boes