I haven't really given this much thought, so it's not even mixed let alone baked, but instead of templating, wouldn't it be possible to build a fancy serde serializer that spits out html fragments of the required shape? Where the 'shape' is determined by preconfiguring the serializer (👋 👋 👋 ).