Looks good. My own module of this sort auto-escapes HTML special characters in strings fed to it, by default -- it looks like yours doesn't do this, at least at first glance. Is that right?
OTOH I think I like your syntax better.
OTOH I think I like your syntax better.