How to render a template to a string

This appears to not work in 1.8.0.beta.1.