Here's a proof of concept of what I described, as a diff:
http://paste.pocoo.org/show/124381/
Generated code is wrapped by a run(environment, template) function,
which is executed in Template.from_code() to get the template
variables. The generated code is now importable, and we can load a
template "as module". No compile(), no exec.
Let me know what you think.
-- rodrigo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---