Issues

Issue #75 resolved

Bug in code generation with """#""" line

guest
created an issue

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: '#'

Comments (1)

  1. Log in to comment