First shot is the code formatted as I got it. Second is re-formatted so I could read it properly.
It was only with the reformatted code that I could see the problem: a tag needed to be self-closing, and wasn't. This was stopping any output on the page, but "still working" in the CMS.