Questions tagged [dominate]

Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.

The Dominate library requires only knowledge of object-oriented Python and HTML as described by the DOM interface. Written by Tom Flanagan, Jake Wharton and Brad Janke. Made available under LGPL v3.0 license.

It makes HTML elements available as classes and members in Python, without imposing a separation between the application logic and the presentation layer. This provides an intuitive ready-to-use solution, that may ease or dispense the additional learning curve sometimes required by other templating tools and engines.

An introduction with examples of use, can be found on GitHub: https://github.com/Knio/dominate

20 questions
7
votes
2 answers

Python package no longer working - ImportError: No module named dominate

I've been using the Python package Dominate for a few months and all of a sudden it does not work: Traceback (most recent call last): File "sitecode.py", line 4, in import dominate ImportError: No module named dominate I ran this…
gregorio099
  • 145
  • 1
  • 7
4
votes
1 answer

Add