#5216: Added call to *InitHelpers*.

This will cause various helpers to be initialized, such as the *Html* property.
This commit is contained in:
Sipke Schoorstra
2015-04-29 20:30:08 +02:00
committed by Sebastien Ros
parent b98d35305a
commit f8c6feea86

View File

@@ -23,6 +23,7 @@ namespace Orchard.Templates.Compilation.Razor {
public abstract class RazorTemplateBase<T> : Mvc.ViewEngines.Razor.WebViewPage<T>, IRazorTemplateBase<T> {
public WebPageContext WebPageContext { get; set; }
public virtual void Render(TextWriter writer) {
InitHelpers();
PushContext(WebPageContext, writer);
OutputStack.Push(writer);
Execute();