Commits

Andriy Kornatskyy committed d1b192a

PreprocessLoader is not part of wheezy.template.

Comments (0)

Files changed (1)

05-template/wheezy.template/app.py

 from wheezy.template.engine import Engine
 from wheezy.template.ext.core import CoreExtension
 from wheezy.template.loader import FileLoader
+from wheezy.template.loader import PreprocessLoader
 
 
 def main(name):
 
     template = engine.get_template('welcome.html')
     return template.render
-
-
-class PreprocessLoader(object):
-
-    def __init__(self, engine, ctx=None):
-        self.engine = engine
-        self.ctx = ctx or {}
-
-    def load(self, name):
-        return self.engine.render(name, self.ctx, {}, {})