自己写了一个python web框架,目前比较简单,欢迎交流。

231 阅读1分钟
原文链接: github.com

grimlock Logo

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()