1. imbolc
  2. pysi

Commits

imbolc  committed 7877d57

add cfg.JINJA2_EXTENSIONS

  • Participants
  • Parent commits 22a1059
  • Branches default

Comments (0)

Files changed (3)

File pysi/config.py

View file
  • Ignore whitespace
     TEMPLATE_LOADER = 'pysi.template.file_loader'
     FLASH_COOKIE_NAME = u'pysi.flash'
     ROUTING_QUEUE = ['pysi.auto_routing']  # очередь функций роутинга
+    JINJA2_EXTENSIONS = ['jinja2.ext.with_']
 
     def set_defaults(self, **kwargs):
         '''

File pysi/template.py

View file
  • Ignore whitespace
         autoescape = True,
         cache_size = cfg.TEMPLATE_CACHE_SIZE,
         auto_reload = cfg.TEMPLATE_AUTO_RELOAD,
-        extensions = ['jinja2.ext.with_'],
+        extensions = cfg.JINJA2_EXTENSIONS,
     )
 
 class FileLoader(object):

File setup.py

View file
  • Ignore whitespace
 import os
 from setuptools import setup
 
-VERSION = '0.8.6'
+VERSION = '0.8.7'
 PACKAGE = 'pysi'
 
 if __name__ == '__main__':