This is simple html generator for flask or django
Project description
This is simple html generator for flask or django
Installing
Python 3.8 or higher is required
# Linux/macOS
pip3 install -U webthon
# Windows
pip install -U webthon
Flask Code Example
from flask import Flask
import index
app = Flask(__name__)
@app.route("/")
def home():
return index.create()
if __name__ == "__main__":
app.run(debug=True)
index.py Example
from webthon import website
index = website()
index.set_title("webthon example")
index.set_description("webthon site example")
index.set_keywords(["webthon","web"])
index.set_author("mario1842")
index.heading("Welcome!",1,"id","welcome")
index.paragraph("This is simple example","class","example")
def create():
return index.generate()
Generated Site
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
webthon-0.0.2.tar.gz
(3.2 kB
view details)
File details
Details for the file webthon-0.0.2.tar.gz.
File metadata
- Download URL: webthon-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a602824ca89ac4fbfed9ecfc97319b7c43b91b79073ba18cc971666a1a6987a
|
|
| MD5 |
a90dfe3d00bb0e1a313ec21fc7446f73
|
|
| BLAKE2b-256 |
7067ccd1adbe6309df183b50010e2f101dc92d00b934b1aff5ae42cd6ab3d190
|