Refactored to use a buffer pool, common render language, courtesy of http://www.reddit.com/r/golang/comments/27ls5a/including_htmltemplate_snippets_is_there_a_better