What I’m trying to achieve is prepending of a global site name to the titles provided by handler rules. That is, every page has title('Stuff') defined in their respective reply_html_page predicates and the end result I expect is ... <title>MySite: Stuff</title> ... on every page.
It seems user:head(Name, Head) --> ... could be a solution with Head matching to html_write:title(X), html_write:[title(X)], or html_write:[...,title(X),...]. But how do we approach the extraction of title from Head exactly, is there any standard mechanism in the toolbox? Ideally, I would like to avoid reinventing the wheel and cluttering my layouts with anything unrelated to layout.