1. Tatham Oddie
  2. RegexAnalyzer

Commits

Tatham Oddie  committed ee445de

Fixed up the razor config to match what MVC 3 Beta actually expects. Ooops.

  • Participants
  • Parent commits 562c570
  • Branches default

Comments (0)

Files changed (6)

File Web/Views/Analysis/Basic.cshtml

View file
  • Ignore whitespace
-@inherits System.Web.Mvc.WebViewPage<dynamic>
-@using System.Web.Mvc.Html;
+@model dynamic
 
 <h2>You gave us this expression:</h2>
 <code class="code-block">@View.ExpressionMarkup</code>

File Web/Views/Analysis/NoExpression.cshtml

View file
  • Ignore whitespace
-@inherits System.Web.Mvc.WebViewPage<dynamic>
+@model dynamic
 
 <p>Forgot to supply an expression?</p>

File Web/Views/Analysis/Verbose.cshtml

View file
  • Ignore whitespace
-@inherits System.Web.Mvc.WebViewPage<dynamic>
+@model dynamic
 
 <h2>We started with this expression:</h2>
 <code class="code-block">@View.ExpressionMarkup</code>

File Web/Views/Home/Index.cshtml

View file
  • Ignore whitespace
-@inherits System.Web.Mvc.WebViewPage<dynamic>
-
-<p>
+<p>
     Regular expressions are no doubt insanely powerful. The problem is that they can be scarily
     terse and nobody ever seems to document them once they've written them. This site answers
     one simple question - what does this regular expression do? Use it to help learn, or

File Web/Views/Web.config

View file
  • Ignore whitespace
 <?xml version="1.0"?>
-
 <configuration>
+  <configSections>
+    <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
+      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
+      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
+    </sectionGroup>
+  </configSections>
+  <system.web.webPages.razor>
+    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
+    <pages pageBaseType="System.Web.Mvc.WebViewPage">
+      <namespaces>
+        <add namespace="System.Web.Mvc" />
+        <add namespace="System.Web.Mvc.Ajax" />
+        <add namespace="System.Web.Mvc.Html" />
+        <add namespace="System.Web.Routing" />
+      </namespaces>
+    </pages>
+  </system.web.webPages.razor>
   <system.web>
     <httpHandlers>
       <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
     </httpHandlers>
-
     <!--
         Enabling request validation in view pages would cause validation to occur
         after the input has already been processed by the controller. By default
       </controls>
     </pages>
   </system.web>
-
   <system.webServer>
     <validation validateIntegratedModeConfiguration="false" />
-    
     <handlers>
       <remove name="BlockViewHandler"/>
       <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
     </handlers>
   </system.webServer>
-</configuration>
+</configuration>

File Web/Views/_viewstart.cshtml

View file
  • Ignore whitespace
-@inherits System.Web.WebPages.StartPage
-@{
+@{
     Layout = "~/Views/Shared/_Layout.cshtml";
 }