(engine)
| 91 | |
| 92 | @app.route("/put/<engine>", methods = [ "PUT" ]) |
| 93 | def putfunc(engine): |
| 94 | |
| 95 | template = request.values.get('tpl') |
| 96 | if not template: |
| 97 | template = '%s' |
| 98 | |
| 99 | injection = request.values.get('inj') |
| 100 | if engine == 'mako': |
| 101 | return randomword() + MakoTemplates(template % injection, lookup=mylookup).render() + randomword() |
| 102 | elif engine == 'jinja2': |
| 103 | return randomword() + Jinja2Env.from_string(template % injection).render() + randomword() |
| 104 | |
| 105 | @app.route("/limit/<engine>") |
| 106 | def limited(engine): |
nothing calls this directly
no test coverage detected