How can you call a function that does this? html'<div id={id:int}>{content:HTML|str}</div>'.
html() is not going to be equivalent.
html() is not going to be equivalent.
Companion repo with: JupyterLite playground, Docker images, other material. https://github.com/pauleveritt/tagstr-site
It required a janky workaround for the absence of this PEP: https://pypi.org/project/tagged/
I used these to investigate ideas about component-driven development: https://viewdom.readthedocs.io/en/latest/
- No tooling in Python will do anything with the string, so DX suffers. - Evaluating the variable requires frame evaluation, which is...problematic.
You could do `html(f'<div>Hello {name}</div>')` and get f-string coding assistance. But you'd also get immediate evaluation. There's nothing the `html` function can do with the `{name}` part.