Changelog¶
Changelog¶
All notable changes to this project will be documented in this file.
[0.4.0] - 2026-09-05¶
Added
CSSCustomPropertiesnode for CSS custom property (variable) blocks on any selector (defaults to:root).Added
css_var(name)helper returningvar(--name)references.Added
CSSStyleSheet.add_custom_properties(props, selector=":root")convenience method.Added
html_loader(path)— reads an HTML file and returns anHtmlDocument.Added
css_loader(path)— reads a CSS file and returns aCSSStyleSheet.
[0.3.0] - 2026-09-06¶
Renamed PyPI distribution from
html5(taken) tohtml5cc. Import name is unchanged:import html5.
[0.3.0] - 2026-09-05¶
Fixed
style_tag()isinstance check order to prevent double-wrapping ofCSSStyleElement.JSScriptnow raisesValueErrorwhen bothsrcandcodeare set simultaneously.Removed redundant
JSLinkclass;javascript_link()now returnsJSScriptdirectly.Fixed
MarkupWriterpath guard to reject"."(root directory) and..-based escapes.Added
BOOTSTRAP5_CSS_URLtocss.__all__.Fixed
pyproject.tomlHomepageURL (was placeholderexample.com); added Documentation, Source, and Changelog URLs.Added CI workflow (
ci.yml) running pytest across Python 3.10, 3.11, and 3.12.Added publish workflow (
publish.yml) for GitHub Packages on version tags.Expanded test coverage:
CSSAtRule,CSSSupportsRule,CSSLayerRule,CSSMediaRule,CSSKeyframe,style_tagdouble-wrap guard,JSScriptvalidation,MarkupWriterpath traversal,google_fonts_url(text=…),HtmlDocument(lang=…).Added Installation documentation page with pip, requirements.txt, uv, and Poetry examples.
[0.2.0] - 2026-09-05¶
Added CDN helpers for Bootstrap 5 and Tailwind CSS.
Added optimized Google Fonts asset generation.
Added a disk writer utility for HTML and CSS outputs.
Added semantic version metadata and pytest coverage configuration.
[0.1.0] - 2026-09-04¶
Initial HTML5 and CSS3 markup helpers.