Commit c2910a87 authored by Guido van Rossum's avatar Guido van Rossum

Add do_rawtext method, so the compiler can do the cgi.escape().

parent 745c3746
......@@ -97,6 +97,8 @@ BOOLEAN_HTML_ATTRS = [
# List of Boolean attributes in HTML that should be rendered in
# minimized form (e.g. <img ismap> rather than <img ismap="">)
# From http://www.w3.org/TR/xhtml1/#guidelines (C.10)
# XXX The problem with this is that this is not valid XML and
# can't be parsed back!
"compact", "nowrap", "ismap", "declare", "noshade", "checked",
"disabled", "readonly", "multiple", "selected", "noresize",
"defer"
......@@ -261,6 +263,9 @@ class TALInterpreter:
self.stream_write(text)
self.stream_write("-->")
def do_rawtext(self, text):
self.stream_write(text)
def do_condition(self, condition, block):
if not self.tal or self.engine.evaluateBoolean(condition):
self.interpret(block)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment