Error compiling template "Designs/Website/default.cshtml"
Line 10: The type or namespace name 'Extensions' does not exist in the namespace 'Application' (are you missing an assembly reference?)
Line 18: The name 'CultureExtensions' does not exist in the current context
Line 29: The name 'DeveloperExtensions' does not exist in the current context
Line 56: The name 'DeveloperExtensions' does not exist in the current context
1 // <auto-generated/>
2 #pragma warning disable 1591
3 namespace CompiledRazorTemplates.Dynamic
4 {
5 #line hidden
6 using System.Threading.Tasks;
7 using System;
8 using System.Collections.Generic;
9 using System.Linq;
10 using Application.Extensions;
11 internal class RazorEngine_295d2dcc8434474ba8cd6901d082bb50 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
12 {
13 #pragma warning disable 1998
14 public async override global::System.Threading.Tasks.Task ExecuteAsync()
15 {
16 WriteLiteral("\r\n\r\n<!doctype html>\r\n<html");
17 BeginWriteAttribute("lang", " lang=\"", 142, "\"", 194, 1);
18 WriteAttributeValue("", 149, CultureExtensions.GetAreaCulture(Model.Area), 149, 45, false);
19 EndWriteAttribute();
20 WriteLiteral(" data-area-id=\"");
21 Write(Pageview.Area.ID);
22 WriteLiteral("\" data-page-id=\"");
23 Write(Pageview.Page.ID);
24 WriteLiteral("\" data-ecom-lang=\"");
25 Write(Pageview.Area.EcomLanguageId);
26 WriteLiteral("\">\r\n <head>\r\n ");
27 Write(RenderPartial("partials/meta/seo.cshtml", this.Model));
28 WriteLiteral("\r\n ");
29 Write(RenderPartial("partials/assets/styles.cshtml", this.Model, new Dictionary<string, object> { { "UseWatchedAssets", DeveloperExtensions.UseWatchedAssets(Model.Area) } }));
30 WriteLiteral("\r\n ");
31 Write(RenderPartial("partials/meta/favicons.cshtml", this.Model));
32 WriteLiteral("\r\n ");
33 Write(RenderPartial("partials/meta/social.cshtml", this.Model));
34 WriteLiteral("\r\n ");
35 Write(RenderPartial("partials/meta/schema.cshtml", this.Model));
36 WriteLiteral("\r\n ");
37 Write(RenderPartial("partials/assets/google.cshtml", this.Model));
38 WriteLiteral("\r\n <meta name=\"viewport\" content=\"width=device-width\" />\r\n\r\n");
39 WriteLiteral(@" <link rel=""preconnect"" href=""https://fonts.googleapis.com"">
40 <link rel=""preconnect"" href=""https://fonts.gstatic.com"" crossorigin>
41 <link rel=""preload"" href=""https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"" as=""style"" type=""text/css"">
42 <link rel=""preload"" href=""https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&display=swap"" as=""style"" type=""text/css"">
43 <link href=""https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"" rel=""stylesheet"">
44 <link href=""https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&display=swap"" rel=""stylesheet"">
45 </head>
46 <body>
47 ");
48 Write(RenderSnippet("GoogleNoScript"));
49 WriteLiteral("\r\n <div id=\"app\">\r\n ");
50 Write(RenderPartial("partials/layout/navigation.cshtml", this.Model));
51 WriteLiteral("\r\n <main id=\"main\">\r\n \r\n\r\n");
52 Write(Model.Grid("contentgrid", "Grid", "", "Page"));
53 WriteLiteral("\r\n\r\n </main>\r\n ");
54 Write(RenderPartial("partials/layout/footer.cshtml", this.Model));
55 WriteLiteral("\r\n </div>\r\n ");
56 Write(RenderPartial("partials/assets/scripts.cshtml", this.Model, new Dictionary<string, object> { { "UseWatchedAssets", DeveloperExtensions.UseWatchedAssets(Model.Area) } }));
57 WriteLiteral("\r\n </body>\r\n</html>\r\n");
58 }
59 #pragma warning restore 1998
60 }
61 }
62 #pragma warning restore 1591
63
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
2 @using Application.Extensions
3
4
5 <!doctype html>
6 <html lang="@CultureExtensions.GetAreaCulture(Model.Area)" data-area-id="@Pageview.Area.ID" data-page-id="@Pageview.Page.ID" data-ecom-lang="@Pageview.Area.EcomLanguageId">
7 <head>
8 @RenderPartial("partials/meta/seo.cshtml", this.Model)
9 @RenderPartial("partials/assets/styles.cshtml", this.Model, new Dictionary<string, object> { { "UseWatchedAssets", DeveloperExtensions.UseWatchedAssets(Model.Area) } })
10 @RenderPartial("partials/meta/favicons.cshtml", this.Model)
11 @RenderPartial("partials/meta/social.cshtml", this.Model)
12 @RenderPartial("partials/meta/schema.cshtml", this.Model)
13 @RenderPartial("partials/assets/google.cshtml", this.Model)
14 <meta name="viewport" content="width=device-width" />
15
16 @* Fonts *@
17 <link rel="preconnect" href="https://fonts.googleapis.com">
18 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
19 <link rel="preload" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" as="style" type="text/css">
20 <link rel="preload" href="https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&display=swap" as="style" type="text/css">
21 <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
22 <link href="https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&display=swap" rel="stylesheet">
23 </head>
24 <body>
25 @RenderSnippet("GoogleNoScript")
26 <div id="app">
27 @RenderPartial("partials/layout/navigation.cshtml", this.Model)
28 <main id="main">
29
30
31 @Model.Grid("contentgrid", "Grid", "", "Page")
32
33 </main>
34 @RenderPartial("partials/layout/footer.cshtml", this.Model)
35 </div>
36 @RenderPartial("partials/assets/scripts.cshtml", this.Model, new Dictionary<string, object> { { "UseWatchedAssets", DeveloperExtensions.UseWatchedAssets(Model.Area) } })
37 </body>
38 </html>
39