Supports default @inherits directive umbraco.MacroEngines.DynamicNodeContext

This commit is contained in:
Elijah
2011-02-16 21:29:35 -10:00
parent 2def8a520a
commit 3a76e9caae
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
<system.web.webPages.razor>
<host factoryType="umbraco.MacroEngines.RazorUmbracoFactory, umbraco.MacroEngines"/>
<pages pageBaseType="System.Web.WebPages.WebPage, System.Web.WebPages">
<pages pageBaseType="umbraco.MacroEngines.DynamicNodeContext">
<namespaces>
<add namespace="Microsoft.Web.Helpers" />
</namespaces>

View File

@@ -117,7 +117,7 @@ namespace umbraco.MacroEngines
if (razorSyntax == null)
throw new ArgumentNullException("razorSyntax");
if (scriptLanguage == null)
throw new AbandonedMutexException("scriptLanguage");
throw new ArgumentNullException("scriptLanguage");
//Get Rid Of Whitespace From Start/End
razorSyntax = razorSyntax.Trim();