Grimlock is a python web framework based on Werkzeug and Jinjia2.
Grimlock是一个基于Werkzeug和Jinjia2的Python web框架。
Example:
from grimlock import Grimlock
app = Grimlock(__name__)
@app.route('/')
def index():
return '<h1>Hello, world!</h1>'
@app.route('/<name>/')
def hello(name):
return app.render_template('index.html', name=name)
if __name__ == '__main__':
app.run()