Browse files

Added example of Appliction.cshtml to clarify and added configSection…

…s/sectionGroup to important sections for web,config for the example to work
  • Loading branch information...
1 parent 8531fc9 commit 21751f74327c1821b689213ae645c57d9e7269be @chribben chribben committed with CoreyKaylor Jun 24, 2012
Showing with 10 additions and 3 deletions.
  1. +10 −3 docs/source/topics/viewengines/razor/usingrazor.rst
13 docs/source/topics/viewengines/razor/usingrazor.rst
@@ -139,8 +139,14 @@ Press F5 and you should see
Now add your first layout (assumption is made you know how to write layout
files for razor). FubuMVC defaults to looking for Application.cshtml
-in the Shared folder at the root of our host application. Your solution should
-look like the following.
+in the Shared folder at the root of our host application. The Application.cshtml
+can be as simple as a one-liner like so:
+.. code-block:: html
+ <div>Host Application: @RenderBody()</div>
+Your solution should look like the following.
.. image:: ../images/organization_razor.png
:alt: organized razor files.
@@ -165,7 +171,8 @@ The FubuMVC implementation doesn't depend on those assemblies, but unfortunately
the tooling does for now.
Your web.config must be similar to the below sample. Important sections are the
-compilation section under system.web and the system.web.webPages.razor section.
+sectionGroup section under configSections, the compilation section under system.web
+and the system.web.webPages.razor section.
Lastly, you may need to close and reopen Visual Studio.

0 comments on commit 21751f7

Please sign in to comment.