Releases: COMP1010UNSW/pyhtml-enhanced
Releases · COMP1010UNSW/pyhtml-enhanced
v1.1.0 - Support for Python 3.9
✨ NEW ✨
- Python 3.9 is now supported, so UNSW's CSE systems should no-longer freak out when installing the library
- PyHTML now gives a hint in the error message when users forget to stringify it before returning it to Flask
✏️ CHANGES ✏️
- Some dead code has been removed
- The module documentation is now significantly more helpful
- The library now uses a more markdown-friendly copy of the CC-BY-SA-2.5 license
⚙️ UNDER THE HOOD ⚙️
- The library now uses doctests to ensure that the examples in the README are correct
- It also has some end-to-end tests for Flask, since that is the primary use case in COMP1010
v1.0.4 - Improved documentation
✏️ CHANGED ✏️
- Suggestions are now included for more
form
,input
, andbutton
attributes - Attribute suggestions have been added for
td
, andth
elements
v1.0.3 - More refinements
🔧 FIXED 🔧
- Fix the same issue as before, it didn't work for self-closing tags
- This is why I need to remember to check coverage before publishing releases
v1.0.2 - Refinements
✏️ CHANGED ✏️
- Default values for attributes are documented
🔧 FIXED 🔧
- Overrides of attributes with default values in secondary calls didn't work
v1.0.1 - Bug fix
🔧 FIXED 🔧
- Fixed an issue where attributes could be overwritten by default properties
v1.0.0 - Full release with near feature parity
✨ NEW ✨
- Uninstantiated tags are now instantiated and rendered if they are a children of another element
- Lists of child elements are flattened
- Giving
value=True
will correctly render boolean attributes - Default attribute values are given for some tag types
- Documentation now includes details about suggested attributes
- Now with 100% test coverage (at least of the distributed code)
✏️ CHANGED ✏️
- Tag properties are now (correctly) named attributes
- Elements are also rendered when calling
repr()
- Contents of comment tags are indented for readability
🔧 FIXED 🔧
- Attribute names that overlap with reserved keywords can now be accessed using a suffix (not just prefix) underscore (eg
for_
)
v0.2.1 - Fix incorrect link parsing
- Links were sometimes parsed incorrectly, leading to 404s on occasion.
v0.2 - Fix broken documentation links
Links within descriptions are reformatted to make them link to MDN correctly.
v0.1.0 - Initial Release
Initial release of pyhtml-enhanced