25 namespace Ntp.Analyzer.Render
35 protected virtual string Title {
get; }
39 var builder =
new StringBuilder();
41 builder.AppendLine(
"<body>");
42 builder.Append(RenderPageBody());
44 return builder.ToString();
49 var builder =
new StringBuilder();
51 builder.Append(RenderPageFooter());
53 builder.AppendLine(this.AppendWithWebpath(
54 @" <script src=""{0}{1}""></script>",
57 builder.AppendLine(this.AppendWithWebpath(
58 @" <script src=""{0}{1}""></script>",
59 "js/bootstrap.min.js"));
61 builder.AppendLine(
"</body>");
62 builder.AppendLine(
"</html>");
64 return builder.ToString();
69 var builder =
new StringBuilder();
71 builder.AppendLine(
"<!DOCTYPE html>");
72 builder.AppendLine(
@"<html lang=""en""><head>");
73 builder.AppendLine(
@" <meta charset=""UTF-8"">");
74 builder.AppendLine(
@" <meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">");
76 builder.Append(
" <title>");
77 builder.Append(Title);
78 builder.AppendLine(
"</title>");
80 builder.AppendLine(this.AppendWithWebpath(
81 @" <link href=""{0}{1}"" rel=""stylesheet"" media=""screen"">",
82 "css/bootstrap.min.css"));
84 builder.Append(RenderPageHead());
86 builder.AppendLine(
"</head>");
88 return builder.ToString();
91 protected abstract string RenderPageBody();
93 protected abstract string RenderPageFooter();
95 protected abstract string RenderPageHead();