We had that. It was called XSLT.
Google said they weren't smart enough to implement it, or pay anyone to fix the one they forked a decade ago.