anyways, the final step,
template->add_raw_content(get_file_contents(<filename>));works fine except that template->body() seemed to be escaping all the quotes in the fragment (bad [tm]).
Anyways in a quest for a quick solution I just wrapped the rawcontents addition in a call to stripcslashes on line 335 of template.php:
template.php:333
if ( isset($request['raw']) ) {
$this->body .= "\n".stripcslashes($this->raw_contents[$request['num']])."\n";
continue;
}
This appears to resolve the issue. I'm wondering if the quotes escaping is expected behaviour for add_raw_content and I'm doing something nutty here. Otherwise I'd love to see this go into the main codebase (makes my life easier come upgrade time
)

