Hi BobRay,
what is confusing is that at least one time, I did get some output into the rendered page from print("text"); in a plugin, I swear!
But it's gone.
I have tried EmailResource but I couldn't get it to work a single time, don't know why.
I installed it, checked the OnWebPagePrerender Event, assigned all the TVs to the relevant template and had a look at their values in the relevant resources.
To "preview" a page, I suppose I have to click the button where in my German speaking backend it says "Anzeigen", left of the "Löschen" (Delete) button, in the button bar top-right, just below the navbar. This button yields no response other than the rendered resource. No different with "Show resource" from the context menu.
But for now I'll try to pass $modx->resource->_output directly into the DB - I have the impression that might work. Luckily the resources in question already have their CSS inside.