Skip to main content

This is simple html generator for flask or django

Project description

Discord server invite PyPI version info

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

Created site from example code.

Project details


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.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page