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

Add version and mode opcodes to macros.

parent 504b3a1e
......@@ -399,6 +399,8 @@ class TALGenerator:
self.emit("setPosition", position)
if defineMacro:
self.pushProgram()
self.emit("version", TAL_VERSION)
self.emit("mode", self.xml and "xml" or "html")
todo["defineMacro"] = defineMacro
if useMacro:
self.pushSlots()
......
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