Skip to content

Lns-XueFeng/Feasp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feasp

一个简单的Web框架,基于WSGI标准,仅用于学习与交流。


1.返回渲染的网页

from feasp import Feasp, render_template

app = Feasp(__name__)

@app.route("/index", methods=["GET"])
def index():
    return render_template("index.html")

2.定义一个数据接口

from feasp import Feasp

app = Feasp(__name__)

@app.route("/api", methods=["GET"])
def index():
    return {"data": "just return a dict"}

更多用法见example目录...

About

一个简单的Web框架,基于WSGI标准

Topics

Resources

License

Stars

Watchers

Forks

Languages