Metadata-Version: 2.1
Name: webthon
Version: 0.0.1
Summary: This is simple html generator for flask or django
Home-page: UNKNOWN
Author: mario1842
Author-email: mario1842.info@gmail.com
License: MIT
Keywords: flask html css generator django
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Education
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
License-File: LICENSE.txt

webthon
=======

.. image:: https://discord.com/api/guilds/570368779150688266/embed.png
   :target: https://discord.com/invite/uynSzaTAF3
   :alt: Discord server invite
.. image:: https://img.shields.io/pypi/v/webthon.svg
   :target: https://pypi.org/project/webthon/
   :alt: PyPI version info


This is simple html generator for flask or django


Installing
~~~~~~~~~~

**Python 3.8 or higher is required**


.. code:: sh

    # Linux/macOS
    pip3 install -U webthon

    # Windows
    pip install -U webthon


Flask Code Example
~~~~~~~~~~~~~~~~~~~

.. code:: py

    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
~~~~~~~~~~~~~~~~

.. code:: py

    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
~~~~~~~~~~~~~~
.. image:: https://raw.githubusercontent.com/mario1842/mariocard.py/main/site.png
   :target: https://raw.githubusercontent.com/mario1842/mariocard.py/main/site.png
   :alt: Created site from example code.

Links
-----
- `Github <https://github.com/mario1842/webthon/>`_
- `Youtube Channel <https://www.youtube.com/channel/UC4vtx0j0wcP6s4n7hCTUs7A>`_
- `My Discord Server <https://discord.com/invite/uynSzaTAF3>`_
- `Download <https://pypi.org/project/webthon/>`_

