Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

html5witch offers Pythonic HTML5 generation based on xmlwitch

Project Description

html5witch offers Pythonic HTML5 generation based on xmlwitch. BSD-licensed.

Usage

>>> import html5witch
>>> doc = html5witch.Builder()
>>> with doc.html:
...     with doc.head:
...        doc.title('Title')
...     with doc.body:
...        doc.p('Hello World')
...        with doc.form(action="/", method="post"):
...            doc.input(type="input", name="my_input_field")
...
>>> print(doc)
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Title</title>
  </head>
  <body>
    <p>Hello World</p>
    <form action="/" method="post">
      <input type="input" name="my_input_field">
    </form>
  </body>
</html>

Setup

$ pip install html5witch # or
$ easy_install html5witch # or
$ cd xmlwitch-0.2.1; python setup.py install
$ cd html5witch-0.2.1; python setup.py install
Release History

Release History

This version
History Node

0.2.1

History Node

0.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
html5witch-0.2.1.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Jan 12, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting