different delimiters in jinja2 + flask

Sign up for a GitHub account Sign in All Gists lost-theory / gist:3925738 Created October 21, 2012 Code Revisions 1 Stars 18 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav different delimiters in jinja2 + flask View gist:3925738 gistfile1.py Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 from flask import Flask , render_template_string , request class CustomFlask ( Flask ): jinja_options = Flask . jinja_options . copy () jinja_options . update ( dict ( block_start_string = '<%' , block_end_string = '%>' ...

Linked on 2014-11-19 17:59:34 | Similar Links