An HtmlHelper instance (named Html) should be added to RazorTemplateBase, and the Write method should html encode any objects that don't implement IHtmlString to match Razor's behaviour in MVC.
Comments: Great, thanks, I'll take a look.
Comments: Great, thanks, I'll take a look.