Though the mechanism you’re proposing seems to be more general than that.
If you’re referring to the custom-scripts.json proposed in this pitch, I’m not sure whether that would be the best place to declare custom HTML since that file is intended to declare custom scripts.