Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

tuna2134-archive/sanic-template

Repository files navigation

sanic-templates

How to use sanic-template

1

pip install sanic-template

3

create a templates folder

2

from sanic import Sanic
from sanic_template import template

app = Sanic("api")
template=template()

@app.route("/test")
async def html(request):
  return await template.render_template("test.html", test="a")
  
app.run(host="0.0.0.0", port=8080)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published