Package lxml :: Package html :: Module builder

[hide private]
[frames] | no frames]

# Module builder

source code

A set of HTML generator tags for building HTML documents.

Usage:

    >>> from lxml.html.builder import *
    >>> html = HTML(
    ...            HEAD( TITLE("Hello World") ),
    ...            BODY( CLASS("main"),
    ...                  H1("Hello World !")
    ...            )
    ...        )

    >>> import lxml.etree
    >>> print lxml.etree.tostring(html, pretty_print=True)
    <html>
      <head>
        <title>Hello World</title>
      </head>
      <body class="main">
        <h1>Hello World !</h1>
      </body>
    </html>

Functions | [hide private]

CLASS(v) | source code

FOR(v) | source code

Variables | [hide private]

| E = `<lxml.builder.ElementMaker object>`
| A = `<functools.partial object>`
| ABBR = `<functools.partial object>`
| ACRONYM = `<functools.partial object>`
| ADDRESS = `<functools.partial object>`
| APPLET = `<functools.partial object>`
| AREA = `<functools.partial object>`
| B = `<functools.partial object>`
| BASE = `<functools.partial object>`
| BASEFONT = `<functools.partial object>`
| BDO = `<functools.partial object>`
| BIG = `<functools.partial object>`
| BLOCKQUOTE = `<functools.partial object>`
| BODY = `<functools.partial object>`
| BR = `<functools.partial object>`
| BUTTON = `<functools.partial object>`
| CAPTION = `<functools.partial object>`
| CENTER = `<functools.partial object>`
| CITE = `<functools.partial object>`
| CODE = `<functools.partial object>`
| COL = `<functools.partial object>`
| COLGROUP = `<functools.partial object>`
| DD = `<functools.partial object>`
| DEL = `<functools.partial object>`
| DFN = `<functools.partial object>`
| DIR = `<functools.partial object>`
| DIV = `<functools.partial object>`
| DL = `<functools.partial object>`
| DT = `<functools.partial object>`
| EM = `<functools.partial object>`
| FIELDSET = `<functools.partial object>`
| FONT = `<functools.partial object>`
| FORM = `<functools.partial object>`
| FRAME = `<functools.partial object>`
| FRAMESET = `<functools.partial object>`
| H1 = `<functools.partial object>`
| H2 = `<functools.partial object>`
| H3 = `<functools.partial object>`
| H4 = `<functools.partial object>`
| H5 = `<functools.partial object>`
| H6 = `<functools.partial object>`
| HEAD = `<functools.partial object>`
| HR = `<functools.partial object>`
| HTML = `<functools.partial object>`
| I = `<functools.partial object>`
| IFRAME = `<functools.partial object>`
| IMG = `<functools.partial object>`
| INPUT = `<functools.partial object>`
| INS = `<functools.partial object>`
| ISINDEX = `<functools.partial object>`
| KBD = `<functools.partial object>`
| LABEL = `<functools.partial object>`
| LEGEND = `<functools.partial object>`
| LI = `<functools.partial object>`
| LINK = `<functools.partial object>`
| MAP = `<functools.partial object>`
| MENU = `<functools.partial object>`
| META = `<functools.partial object>`
| NOFRAMES = `<functools.partial object>`
| NOSCRIPT = `<functools.partial object>`
| OBJECT = `<functools.partial object>`
| OL = `<functools.partial object>`
| OPTGROUP = `<functools.partial object>`
| OPTION = `<functools.partial object>`
| P = `<functools.partial object>`
| PARAM = `<functools.partial object>`
| PRE = `<functools.partial object>`
| Q = `<functools.partial object>`
| S = `<functools.partial object>`
| SAMP = `<functools.partial object>`
| SCRIPT = `<functools.partial object>`
| SELECT = `<functools.partial object>`
| SMALL = `<functools.partial object>`
| SPAN = `<functools.partial object>`
| STRIKE = `<functools.partial object>`
| STRONG = `<functools.partial object>`
| STYLE = `<functools.partial object>`
| SUB = `<functools.partial object>`
| SUP = `<functools.partial object>`
| TABLE = `<functools.partial object>`
| TBODY = `<functools.partial object>`
| TD = `<functools.partial object>`
| TEXTAREA = `<functools.partial object>`
| TFOOT = `<functools.partial object>`
| TH = `<functools.partial object>`
| THEAD = `<functools.partial object>`
| TITLE = `<functools.partial object>`
| TR = `<functools.partial object>`
| TT = `<functools.partial object>`
| U = `<functools.partial object>`
| UL = `<functools.partial object>`
| VAR = `<functools.partial object>`
| __package__ = ``'``lxml.html``'``