Skip to main content

Generate HTML5 with Python generators

Project description

# generate-html

Generate HTML5 with pure Python.

## Usage

def hello_world(h):
with h.p(class_='main'):
yield h.span(h.strong("Hello World!"), data_msg='greeting')

>>> print(to_html(hello_world()))
<!doctype html><p class="main"><span data-msg="greeting"><strong>Hello World!</strong></span></p>

## Installation

generate-html is distributed on [PyPI]( as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.5+ and PyPy.

$ pip install generate-html

## License

generate-html is distributed under the terms of the
[MIT License](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
generate_html-0.0.2-py3-none-any.whl (5.7 kB) Copy SHA256 hash SHA256 Wheel py3
generate-html-0.0.2.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page