#!/usr/bin/env python # -*- coding: utf-8 -*- # # see benchsimple.py # configuration for Mako config = { "template" : """\ Benchsimple | ${title|h}

Benchsimple | ${title|h}

% for n,row in enumerate(table): % for col in row: ${col|h} % endfor % endfor
""", "module" : "mako", "import" : "from mako.template import Template", "complete" : "t = Template(template); r = t.render(**context_dict)", "parse" : "t = Template(template)", "render" : "r = t.render(**context_dict)" } #-----------------------------------------