Breaking changes
- `StyleObject` from `pydom.styling` is renamed to `StyleSheet`
- `class_name` is replaced with `classes` to be the default property for the `class` attribute in html.
- Package is now `pydom` on pypi! (Huge thanks to [Jos Handriks](https://pypi.org/user/Jos.Hendriks/) for giving us the name)
Class name migration guide
You can use the following code to the context to keep using `class_name` instead of `classes`
python
from pydom import get_context
from pydom.context.standard.transformers.class_transformer import ClassTransformer
class_transformer = next(t for t in get_context().prop_transformers if isinstance(t, ClassTransformer))
if class_transformer:
class_transformer.prop_name = "class_name"
Added
- `before` and `after` when adding post render transformers
- `Page` is now exported from the root module
**Full Changelog**: https://github.com/xpodev/pydom/compare/0.2.3...0.3.0