-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.cshtml
17 lines (13 loc) · 1.12 KB
/
default.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<h1>A file-only concept/sandbox super simple "CMS" using Razor syntax and some simple conventions</h1>
<p>Use all Razor techniques for easy layouts, sections, partial page contents, helpers a.s.o</p>
<p>(Asp Net WebPages)</p>
<p>The only thing this "CMS" really does is a small NavigationNode class which can build a navigation node tree from the
filesystem. Then you can use the navigation node tree to display html navigation with some simple Razor
functions (sample top navigation and sub navigation included)</p>
<p>Folders and files with .cshtml extenstions and upper case first letters will show in the navigation (sets the VisibleInNavigation property to
true).</p>
<p>Folders and files with lower case first letters will get VisibleInNagivation=false (for example default.cshtml)</p>
<p>This sample runs from github (free account) https://github.com/joeriks/NavigationNode and autodeploy to
AppHarbor (free account 1 instance) http://navigationnode.apphb.com/
Which basically means I can edit the razor files on GitHub, and on save they are committed and automatically
deployed to the site, which I think is pretty cool.</p>