1. Andriy Kornatskyy
  2. wheezy.template

Commits

Andriy Kornatskyy  committed b32aafe

Using webext speed up in tenjin big table test.

  • Participants
  • Parent commits 778ef0d
  • Branches default

Comments (0)

Files changed (1)

File demos/bigtable/bigtable.py

View file
 except ImportError:
     test_tenjin = None
 else:
+    try:
+        import webext
+        helpers = {
+            'to_str': s,
+            'escape': webext.escape_html
+        }
+    except ImportError:
+        helpers = {
+            'to_str': tenjin.helpers.to_str,
+            'escape': tenjin.helpers.escape
+        }
     helpers = {
         'to_str': tenjin.helpers.to_str,
         'escape': tenjin.helpers.escape