Htmlgen

Latest version: v2.0.0

Safety actively analyzes 682532 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.7

API Additions

* Add input elements Button (<button>), NumberInput (<input type="number">),
PasswordInput (<input type="password">), and DateInput (<input
type="date">).

API-Incompatible Changes

* Move attribute functions from htmlgen.elements to htmlgen.attribute.
(But you should import them directly from htmlgen anyway.)

Improvements

* Improved error handling and reporting.

Documentation

* Add element list document elements.rst.

Bug Fixes

* Add float_html_attribute to htmlgen.

0.6.1

Bug Fixes

* Fixed error when passing elements to TableCell's and TableHeaderCell's
constructor.

0.6

API Additions

* Add TableHeaderCell to htmlgen (missing from 0.5).
* Division constructor now accepts initial content arguments.

API-Incompatible Changes

* All element constructors that took an initial content argument now take
any number of content arguments, i.e. the following is now possible:
>>> Paragraph("This is ", Emphasis("initial"), " content.")

0.5

API Additions

* Add table elements Table (<table>), TableHead (<thead>),
TableBody (<tbody>), TableRow (<tr>), TableHeaderCell (<th>),
TableCell (<td>), ColumnGroup (<colgroup>), and Column (<col>).

0.4

API Additions

* Add data property to element classes. This provides an API to
easily set and query data-* attributes.
* Add structural element Article (<article>).
* Add inline elements Link (<a>) and Time (<time>).
* Add description list elements DescriptionList (<dl>),
DescriptionTerm (<dt>), and DescriptionDefinition (<dd>).

0.3

API Additions

* Add child-management methods and properties to ChildGenerator and
HTMLChildGenerator:
* remove()
* remove_raw() (HTMLChildGenerator only)
* children
* Add new base class NonVoidElement, derive Element from this class.
This base class can be used for elements with content that do not
support the usual container interface.
* Add document-level elements Document, HTMLRoot (<html>), Head (<head>),
Body (<body>), Title (<title>), Meta (<meta>), Script (<script>),
HeadLink (<link>), and Main (<main>).
* Add structural elements Section (<section>), Navigation (<nav>),
Aside (<aside>), Header (<header>), Footer (<footer>), and Heading
(<h1> to <h6>).
* Add list elements OrderedList (<ol>), UnorderedList (<ul>), and
ListItem (<li>).
* Add has_css_class() method to elements.

Improvements

* Element attributes are now always rendered in alphabetical order. This
makes testing elements easier.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.