I wonder why there's never been a
<calc> /* ... compute and return dom element */ </calc>
Basically what php does but with structure and objects instead of a bytestreamin HTML. Or maybe it's been discussed but got left out