Cenk Alti’s pyhtml¶
pyhtml is a project by Cenk Alti which can render html from python sequences. Such sequences can look very similar to the generated html. Which is far more easily seen in his example, than in my explanation.
Links to pyhtml¶
- The source of the project is stored on github.
- It is available in the Cheeseshop.
The code is licensed under the Apache License, Version 2.0, and so can be copied for investigation.
Summary¶
pyhtml has been tested by Cenk with Python 2.7 only.
Rendering¶
Running¶
I have run pythtml’s tests with Pythons 2.5, 2.6 and 2.7. It passed with the latter only, but fails were only due to use of assertIs and assertIn, both of which were introduced to the unittest module in 2.7. Replacing them with the older assertTrue led to the test suite passing in all three Python versions.