Another big changes ;-)
**BREAKING CHANGES**: the tag.render() method, doesn't make an implicit clear anymore.
If you have htag components, whose were using a `render` method (htag <= 0.20), like that :
python
. . .
def render(self):
self += "Hello world"
. . .
to be compatible with htag >= 0.30, you'll have to change to
python
. . .
def render(self):
self.clear() <- add the same behaviour from the past
self += "Hello world"
. . .
But in reality: you should rethink your component to adapt this new behaviour. Because now, the construction'part should stay in the 'init', and 'render' would be limited to update some things (making dynamic components simpler!) (like before: you shouldn't create tags in render (because will force rendering at each interaction))
It's a lot more consistent with logical internal things. And let do more powerful things.
Technically, the is no more "static component" vs "dynamic component" ! Component which use a render method can have a dynamic behaviour, but can make static changes (on interactions too).
It's a lot lot better/simpler, like that !
Need to update docs and demo (todo 16 )
**Full Changelog**: https://github.com/manatlan/htag/compare/v0.20.0...v0.30.0