We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8843aac commit ac716fdCopy full SHA for ac716fd
1 file changed
RazorRenderer/TemplateFileExtensions.cs
@@ -7,6 +7,11 @@ namespace RazorRenderer
7
{
8
public static class TemplateFileExtensions
9
10
+ public static IHtmlContent Render(this ITemplatePage template, ExpandoObject viewBag = null)
11
+ {
12
+ return RenderAsync(template, (object) null, viewBag).GetAwaiter().GetResult();
13
+ }
14
+
15
public static IHtmlContent Render<TModel>(this ITemplatePage template, TModel model, ExpandoObject viewBag = null)
16
17
return RenderAsync(template, model, viewBag).GetAwaiter().GetResult();
0 commit comments