You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably known and unavoidable but this syntax in a template:
% if ( $error ) {
<%= $error %>
% }
% else {
}
Causes a syntax error:
syntax error at template sign_in.html.ep line 27, near ";
else"
syntax error at template sign_in.html.ep line 82, near "} $_O "
Global symbol "$_O" requires explicit package name (did you forget to declare "my $_O"?) at template sign_in.html.ep line 82.
22
23
<%= $error %>
24
25
% }
26
27
% else {
28
Just removing the blank line between % } and % else { fixes it:
Steps to reproduce the behavior
It's probably known and unavoidable but this syntax in a template:
Causes a syntax error:
syntax error at template sign_in.html.ep line 27, near ";
else"
syntax error at template sign_in.html.ep line 82, near "} $_O "
Global symbol "$_O" requires explicit package name (did you forget to declare "my $_O"?) at template sign_in.html.ep line 82.
22
23
<%= $error %>
24
25
% }
26
27
% else {
28
Just removing the blank line between % } and % else { fixes it:
Some note about this behavior in https://docs.mojolicious.org/Mojolicious/Guides/Rendering
or something might be good
Expected behavior
works like perl
Actual behavior
EXPLAIN WHAT HAPPENED INSTEAD HERE
The text was updated successfully, but these errors were encountered: