pub fn wrap(channel: &str, inner_html: &str) -> StringExpand description
Wraps inner_html in the same data-live-channel-carrying <div>
@live(...)’s own codegen produces for its initial render - the
client’s DOM patcher matches an incoming broadcast against the
existing root element by replacing it wholesale if position/tag
don’t line up, so a broadcast payload needs this exact wrapper shape,
not just the inner content, to patch cleanly in place instead of being
discarded or mismatched.