mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Except for dataflow (where we have a lot of changes, and I don't want to introduce lots of merge conflicts right now).
25 lines
410 B
Python
25 lines
410 B
Python
from flask import Flask, request
|
|
import chevron
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@route('/other')
|
|
def a():
|
|
template = request.args.get('template')
|
|
return chevron.render(template, {"key": "value"})
|
|
|
|
|
|
@route('/other2')
|
|
def b():
|
|
template = request.args.get('template')
|
|
args = {
|
|
'template': template,
|
|
|
|
'data': {
|
|
'key': 'value'
|
|
}
|
|
}
|
|
return chevron.render(**args)
|