#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# see benchsimple.py
# configuration for Jinja 0.7
config = {
"template" : """\
Benchsimple | {{ title|e }}
Benchsimple | {{ title|e }}
{%- for row in table %}
{%- for col in row %}
{{ col|e }} |
{%- endfor %}
{%- endfor %}
""",
"module" : "jinja2",
"import" : "from jinja2 import Environment, BaseLoader",
"complete" : "env = Environment(loader=BaseLoader()); t = env.from_string(template); r = t.render(**context_dict)",
"parse" : "env = Environment(loader=BaseLoader()); t = env.from_string(template)",
"render" : "r = t.render(**context_dict)"
}
#-----------------------------------------