Commits

Andriy Kornatskyy  committed d53a103

User webext.to_str in tenjin Template while preserving unicode output.

  • Participants
  • Parent commits 99fe64f

Comments (0)

Files changed (1)

File demos/bigtable/bigtable.py

     try:
         import webext
         helpers = {
-            'to_str': s,
+            'to_str': webext.to_str,
             'escape': webext.escape_html
         }
     except ImportError:
             'to_str': tenjin.helpers.to_str,
             'escape': tenjin.helpers.escape
         }
-    tenjin_template = tenjin.Template()
+    tenjin_template = tenjin.Template(encoding='utf8')
     tenjin_template.convert(s("""\
 <table>
     <?py for row in table: ?>