Error compiling template "Designs/Advania/Page_Email.cshtml"
Line 10: The type or namespace name 'RazorTemplateBase<>' could not be found (are you missing a using directive or an assembly reference?)
Line 10: The type or namespace name 'RazorTemplateModel<>' could not be found (are you missing a using directive or an assembly reference?)
Line 10: The type or namespace name 'Template' could not be found (are you missing a using directive or an assembly reference?)
Line 15: The name 'WriteLiteral' does not exist in the current context
Line 20: The name 'GetPageIdByNavigationTag' does not exist in the current context
Line 23: The name 'WriteLiteral' does not exist in the current context
Line 66: The name 'WriteLiteral' does not exist in the current context
Line 117: The name 'WriteLiteral' does not exist in the current context
Line 118: The name 'WriteLiteral' does not exist in the current context
Line 119: The name 'WriteLiteral' does not exist in the current context
Line 120: The name 'WriteLiteral' does not exist in the current context
Line 133: The name 'WriteLiteral' does not exist in the current context
Line 178: The name 'WriteLiteral' does not exist in the current context
Line 179: The name 'Write' does not exist in the current context
Line 179: The name 'logoSection' does not exist in the current context
Line 180: The name 'WriteLiteral' does not exist in the current context
Line 181: The name 'WriteLiteral' does not exist in the current context
Line 182: The name 'WriteLiteral' 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 internal class RazorEngine_d2e16bdac2e6416ebb7ca02b1309a099 : RazorTemplateBase<RazorTemplateModel<Template>>
11 {
12 #pragma warning disable 1998
13 public async override global::System.Threading.Tasks.Task ExecuteAsync()
14 {
15 WriteLiteral("\n");
16
string scheme = Dynamicweb.Context.Current.Request.Url.Scheme;
string host = Dynamicweb.Context.Current.Request.Url.Host;
string root = (scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : scheme) + "://" + host;
int myPagesID = GetPageIdByNavigationTag("MyPages");
var path = $"{root}/Default.aspx?ID={myPagesID}";
Advania.Templating.TemplateContext.Mailing.AddContextValue("MypagesPagePath", path);
WriteLiteral(@"
<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">
<html xmlns=""http://www.w3.org/1999/xhtml"">
<head>
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" />
<meta http-equiv=""X-UA-Compatible"" content=""IE=edge"" />
<meta name=""viewport"" content=""width=device-width, initial-scale=1.0"" />
<style type=""text/css"">
p, a, h1, h2, h3, h4, h6 {
font-family: Adelle, sans-serif;
color: #1d1c1b;
font-style: normal;
line-height: normal;
margin: 0;
padding: 0;
}
body {
margin: 0;
}
table {
border-spacing: 0;
width: 100%;
}
td {
padding: 0;
}
h1, h2 {
font-size: 20px;
font-weight: 600;
}
h3 {
font-size: 16px;
font-weight: 400;
}
p {
font-");
17 WriteLiteral(@"size: 12px;
font-weight: 300;
}
th, td {
font-size: 12px;
}
a {
font-weight: bold;
word-wrap: break-word;
text-decoration: underline;
text-decoration-color: #cb0084;
text-decoration-style: solid;
text-decoration-thickness: 1.5px;
text-underline-offset: 6px;
}
img {
border: 0;
}
.wrapper {
width: 100%;
table-layout: fixed;
background-color: #f5f5f5;
margin: 0 auto;
}
.main {
margin: 0 auto;
width: 100%;
max-width: 600px;
border-spacing: 0;
padding-left: 8px;
padding-right: 8px;
}
.section {
background-color: #fff;
}
.font-color__white {
color: #fff;
}
.font-color__grey {
color: #6e6e6e;
}
");
18 WriteLiteral(".font-color__purple {\n color: #4F0077\n }\n\n ");
19 WriteLiteral("@media screen and (min-width:600px) {\n .main {\n padding-left: 0;\n padding-right: 0;\n }\n }\n\n ");
20 WriteLiteral("@media screen and (min-width:480px) {\n\n p {\n font-size: 14px;\n }\n\n th, td {\n font-size: 14px;\n }\n\n h1 {\n font-size: 24px;\n }\n }\n\n ");
21 WriteLiteral(@"@media (prefers-color-scheme: light) {
.darkLogoDefault,
.lightLogo {
display: none !important;
}
.darkLogoWrapper,
.darkLogo {
display: block !important;
}
}
");
22 WriteLiteral(@"@media (prefers-color-scheme: dark) {
h1, h2, p, td, a {
color: #fff !important;
}
body {
background-color: #18191a !important;
}
.wrapper {
background-color: #18191a !important;
}
.section {
background-color: #252027 !important;
}
.font-color__purple {
color: #b290c2 !important;
}
.font-color__grey {
color: #efefef;
}
.darkLogoDefault,
.darkLogo {
display: none !important;
}
.lightLogoWrapper,
.lightLogo {
display: block !important;
}
.order-border-bottom td {
}
.bottom-border {
border-bottom: 1px solid #292929 !important;
}
}
</style>
</head>
<body bg=""#f5f5f5"" style=""background-color: ");
23 WriteLiteral("#f5f5f5\">\n <center class=\"wrapper\">\n <table class=\"main\">\n <thead>\n ");
24 Write(logoSection());
25 WriteLiteral("\n </thead>\n <tbody>\n");
26 WriteLiteral("\n\n\n<div class=\"dwcontent mainContainer\" id=\"mainEmailContentPlaceholder\" title=\"Main Email Content Placeholder\"></div>\n </tbody>\n </table>\n </center>\n</body>\n</html>\n\n");
27 WriteLiteral("\n\n\n");
28 }
29 #pragma warning restore 1998
30 }
31 }
32 #pragma warning restore 1591
33
1 @inherits RazorTemplateBase<RazorTemplateModel<Template>>
@{
string scheme = Dynamicweb.Context.Current.Request.Url.Scheme;
string host = Dynamicweb.Context.Current.Request.Url.Host;
string root = (scheme.Equals("http", StringComparison.OrdinalIgnoreCase) ? "https" : scheme) + "://" + host;
int myPagesID = GetPageIdByNavigationTag("MyPages");
var path = $"{root}/Default.aspx?ID={myPagesID}";
Advania.Templating.TemplateContext.Mailing.AddContextValue("MypagesPagePath", path);
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style type="text/css">
p, a, h1, h2, h3, h4, h6 {
font-family: Adelle, sans-serif;
color: #1d1c1b;
font-style: normal;
line-height: normal;
margin: 0;
padding: 0;
}
body {
margin: 0;
}
table {
border-spacing: 0;
width: 100%;
}
td {
padding: 0;
}
h1, h2 {
font-size: 20px;
font-weight: 600;
}
h3 {
font-size: 16px;
font-weight: 400;
}
p {
font-size: 12px;
font-weight: 300;
}
th, td {
font-size: 12px;
}
a {
font-weight: bold;
word-wrap: break-word;
text-decoration: underline;
text-decoration-color: #cb0084;
text-decoration-style: solid;
text-decoration-thickness: 1.5px;
text-underline-offset: 6px;
}
img {
border: 0;
}
.wrapper {
width: 100%;
table-layout: fixed;
background-color: #f5f5f5;
margin: 0 auto;
}
.main {
margin: 0 auto;
width: 100%;
max-width: 600px;
border-spacing: 0;
padding-left: 8px;
padding-right: 8px;
}
.section {
background-color: #fff;
}
.font-color__white {
color: #fff;
}
.font-color__grey {
color: #6e6e6e;
}
.font-color__purple {
color: #4F0077
}
@@media screen and (min-width:600px) {
.main {
padding-left: 0;
padding-right: 0;
}
}
@@media screen and (min-width:480px) {
p {
font-size: 14px;
}
th, td {
font-size: 14px;
}
h1 {
font-size: 24px;
}
}
@@media (prefers-color-scheme: light) {
.darkLogoDefault,
.lightLogo {
display: none !important;
}
.darkLogoWrapper,
.darkLogo {
display: block !important;
}
}
@@media (prefers-color-scheme: dark) {
h1, h2, p, td, a {
color: #fff !important;
}
body {
background-color: #18191a !important;
}
.wrapper {
background-color: #18191a !important;
}
.section {
background-color: #252027 !important;
}
.font-color__purple {
color: #b290c2 !important;
}
.font-color__grey {
color: #efefef;
}
.darkLogoDefault,
.darkLogo {
display: none !important;
}
.lightLogoWrapper,
.lightLogo {
display: block !important;
}
.order-border-bottom td {
}
.bottom-border {
border-bottom: 1px solid #292929 !important;
}
}
</style>
</head>
<body bg="#f5f5f5" style="background-color: #f5f5f5">
<center class="wrapper">
<table class="main">
<thead>
@logoSection()
</thead>
<tbody>
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>>
<div class="dwcontent mainContainer" id="mainEmailContentPlaceholder" title="Main Email Content Placeholder"></div>
</tbody>
</table>
</center>
</body>
</html>
@* DW10: stubbed helper block (see REIMPLEMENTATION.md) *@