Splice a HeadContext into a rendered HTML string (server-side rendering).
The <title> is replaced in place; everything else is rendered by the agnostic
serializeHead (which escapes attribute names/values) and injected at the
<!--app-head--> placeholder. Optional <html>/<body> attributes are merged in.
All replacements use literal replacers so content containing $&/$'/$1 is inserted
verbatim rather than interpreted as a String.replace pattern.
The head context to apply.
The HTML template/string to inject into.
The HTML string with the head applied.
Head/meta management API for React pages, re-exported from the agnostic
@stone-js/use-viewlayer so users import everything from@stone-js/use-react.