(engine)
| 62 | |
| 63 | @app.route("/post/<engine>", methods = [ "POST" ]) |
| 64 | def postfunc(engine): |
| 65 | |
| 66 | template = request.values.get('tpl') |
| 67 | if not template: |
| 68 | template = '%s' |
| 69 | |
| 70 | injection = request.values.get('inj') |
| 71 | |
| 72 | if engine == 'mako': |
| 73 | return randomword() + MakoTemplates(template % injection, lookup=mylookup).render() + randomword() |
| 74 | elif engine == 'jinja2': |
| 75 | return randomword() + Jinja2Env.from_string(template % injection).render() + randomword() |
| 76 | |
| 77 | |
| 78 | @app.route("/header/<engine>") |
nothing calls this directly
no test coverage detected