mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#5216: Added call to *InitHelpers*.
This will cause various helpers to be initialized, such as the *Html* property.
This commit is contained in:

committed by
Sebastien Ros

parent
b98d35305a
commit
f8c6feea86
@@ -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();
|
||||
|
Reference in New Issue
Block a user