-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
Description
Migrated issue, originally created by Anonymous
Hello
This template works ok:
<%
if True:
"#"
elif False:
'#'
%>
but this returns invalid syntax (!SyntaxError) at elif:
<%
if True:
"""#"""
elif False:
'#'
%>
when we switch elif to if, then compiled template will look like this:
def render_body(context,**pageargs):
context.caller_stack.push_frame()
try:
__M_locals = dict(pageargs=pageargs)
.....
if True:
"""#"""
if False:
'#'