#!/usr/bin/env python # -*- coding: utf-8 -*- # # see benchsimple.py # configuration for Jinja 0.7 config = { "template" : """\ Benchsimple | {{ title|escape(True) }}

Benchsimple | {{ title|escape(True) }}

{%- for row in table %} {%- for col in row %} {{ col|escape(True) }} {%- endfor %} {%- endfor %}
""", "module" : "jinja", "import" : "from jinja import from_string", "complete" : "t = from_string(template); r = t.render(**context_dict)", "parse" : "t = from_string(template)", "render" : "r = t.render(**context_dict)" } #-----------------------------------------