diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-11-19 18:47:45 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-11-19 18:47:45 +0000 |
commit | df656c2ca7538fa165b8c93349c9fc763d0ea380 (patch) | |
tree | 6fa929175f433b2c7450e8962b7a12386b757e3b /lib/mako/template.py | |
parent | 9a2c39f845c7b3e2a8ad428b381466d20ad0f475 (diff) | |
download | external_python_mako-df656c2ca7538fa165b8c93349c9fc763d0ea380.tar.gz external_python_mako-df656c2ca7538fa165b8c93349c9fc763d0ea380.tar.bz2 external_python_mako-df656c2ca7538fa165b8c93349c9fc763d0ea380.zip |
nested components, codegen arch, lexer fixes
Diffstat (limited to 'lib/mako/template.py')
-rw-r--r-- | lib/mako/template.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mako/template.py b/lib/mako/template.py index 9df070f..08d925f 100644 --- a/lib/mako/template.py +++ b/lib/mako/template.py @@ -3,7 +3,7 @@ as well as template runtime operations.""" from mako.lexer import Lexer from mako.codegen import Compiler -from mako.context import Context +from mako.runtime import Context import imp, time, inspect, weakref, sys from StringIO import StringIO @@ -80,11 +80,11 @@ class ComponentTemplate(Template): def _compile_text(text, identifier, filename): node = Lexer(text).parse() source = Compiler(node).render() + #print source cid = identifier module = imp.new_module(cid) code = compile(source, filename or cid, 'exec') exec code in module.__dict__, module.__dict__ - module._modified_time = time.time() return (source, module) def _render(template, callable_, *args, **data): |