|
1 | 1 | @using RequireJS
|
| 2 | +@using RequireJsNet.Docs.Helpers |
2 | 3 |
|
3 | 4 | <!DOCTYPE html>
|
4 | 5 | <html lang="en">
|
5 |
| - <head> |
6 |
| - <meta charset="utf-8" /> |
7 |
| - <title>@ViewBag.Title</title> |
8 |
| - <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |
9 |
| - <meta name="viewport" content="width=device-width" /> |
10 |
| - |
11 |
| - <!--[if lt IE 9]> |
12 |
| - <script src="@Url.Content("~/Scripts/Lib/Vendor/HTML5/json2.js")" type="text/javascript"></script> |
13 |
| - <script src="@Url.Content("~/Scripts/Lib/Vendor/HTML5/html5shiv.js")"></script> |
14 |
| - <![endif]--> |
| 6 | +<head> |
| 7 | + <meta charset="utf-8" /> |
| 8 | + <title>@ViewBag.Title</title> |
| 9 | + <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /> |
| 10 | + <meta name="viewport" content="width=device-width" /> |
15 | 11 |
|
16 |
| - @Styles.Render("~/css") |
17 |
| - </head> |
18 |
| - <body> |
19 |
| - <header> |
20 |
| - <div class="content-wrapper"> |
21 |
| - <div class="float-left"> |
22 |
| - <p class="site-title">@Html.ActionLink("RequireJS for .NET", "Index", "Home")</p> |
23 |
| - </div> |
24 |
| - <div class="float-right"> |
25 |
| - <section id="login"> |
26 |
| - </section> |
27 |
| - <nav> |
28 |
| - <ul id="menu"> |
29 |
| - <li>@Html.ActionLink("Home", "Index", "Home")</li> |
30 |
| - <li>@Html.ActionLink("About", "About", "Home")</li> |
31 |
| - <li>@Html.ActionLink("Contact", "Contact", "Home")</li> |
32 |
| - </ul> |
33 |
| - </nav> |
34 |
| - </div> |
| 12 | + <!--[if lt IE 9]> |
| 13 | + <script src="@Url.Content("~/Scripts/Lib/Vendor/HTML5/json2.js")" type="text/javascript"></script> |
| 14 | + <script src="@Url.Content("~/Scripts/Lib/Vendor/HTML5/html5shiv.js")"></script> |
| 15 | + <![endif]--> |
| 16 | + @Styles.Render("~/css") |
| 17 | +</head> |
| 18 | +<body> |
| 19 | + <header> |
| 20 | + <div class="content-wrapper"> |
| 21 | + <div class="float-left"> |
| 22 | + <p class="site-title">@Html.ActionLink("RequireJS for .NET", "Index", "Home")</p> |
| 23 | + </div> |
| 24 | + <div class="float-right"> |
| 25 | + <section id="login"></section> |
| 26 | + <nav> |
| 27 | + <ul id="menu"> |
| 28 | + <li>@Html.ActionLink("Home", "Index", "Home")</li> |
| 29 | + <li>@Html.ActionLink("About", "About", "Home")</li> |
| 30 | + <li>@Html.ActionLink("Contact", "Contact", "Home")</li> |
| 31 | + </ul> |
| 32 | + </nav> |
35 | 33 | </div>
|
36 |
| - </header> |
37 |
| - <div id="body"> |
38 |
| - @RenderSection("featured", required: false) |
39 |
| - <section class="content-wrapper main-content clear-fix"> |
40 |
| - @RenderBody() |
41 |
| - </section> |
42 | 34 | </div>
|
43 |
| - <footer> |
44 |
| - <div class="content-wrapper"> |
45 |
| - <div class="float-left"> |
46 |
| - <p>© @DateTime.Now.Year - <a href="http://www.stefanprodan.eu">Stefan Prodan's Tech Notes</a></p> |
47 |
| - </div> |
| 35 | + </header> |
| 36 | + <div id="body"> |
| 37 | + @RenderSection("featured", required: false) |
| 38 | + <section class="content-wrapper main-content clear-fix"> |
| 39 | + @RenderBody() |
| 40 | + </section> |
| 41 | + </div> |
| 42 | + <footer> |
| 43 | + <div class="content-wrapper"> |
| 44 | + <div class="float-left"> |
| 45 | + <p>© @DateTime.Now.Year - <a href="http://www.stefanprodan.eu">Stefan Prodan's Tech Notes</a></p> |
48 | 46 | </div>
|
49 |
| - </footer> |
| 47 | + </div> |
| 48 | + </footer> |
50 | 49 |
|
51 |
| - @if (HttpContext.Current.IsDebuggingEnabled) |
52 |
| - { |
53 |
| - @Html.RenderRequireJsSetup(Url.Content("~/Scripts"), |
54 |
| - Url.Content("~/Scripts/require.js"), |
55 |
| - new [] |
| 50 | + @if (HttpContext.Current.IsDebuggingEnabled) |
| 51 | + { |
| 52 | + @Html.RenderRequireJsSetup( |
| 53 | + baseUrl: Url.Content("~/Scripts"), |
| 54 | + requireUrl: Url.Content("~/Scripts/require.js"), |
| 55 | + configsList: new[] |
56 | 56 | {
|
57 |
| - "~/RequireJS.shared.config", |
| 57 | + "~/RequireJS.shared.config", |
58 | 58 | "~/RequireJS.config"
|
59 | 59 | })
|
60 |
| - } |
61 |
| - else |
62 |
| - { |
63 |
| - @Html.RenderRequireJsSetup(Url.Content("~/Scripts"), |
64 |
| - Url.Content("~/Scripts/require.js"), |
65 |
| - Server.MapPath("~/RequireJS.release.config")) |
66 |
| - } |
67 |
| - |
68 |
| - </body> |
| 60 | + } |
| 61 | + else |
| 62 | + { |
| 63 | + @Html.RenderRequireJsSetup( |
| 64 | + baseUrl: Url.Content("~/Scripts"), |
| 65 | + requireUrl: Url.Content("~/Scripts/require.js"), |
| 66 | + urlArgs: MvcRenders.RenderAppVersion(), |
| 67 | + configPath: Server.MapPath("~/RequireJS.release.config")) |
| 68 | + } |
| 69 | + |
| 70 | +</body> |
69 | 71 | </html>
|
0 commit comments