Posted on 04/11/2013 13:55:27
I tried using:
@inherits RazorTemplateBase<RazorTemplateModel<Template>>
@using System;
@using System.Linq;
@using Dynamicweb.Rendering;
The intellisense works in VS2012
In a Page and Masterpage template this inherits is not working for the DW tempalte parser. I get the folowing error:
Error compiling template "Designs/bootstrap_bluedesk/_parsed/home.parsed.cshtml"
Line 33: Type expected
Line 33: { expected
Line 33: Invalid token '<' in class, struct, or interface member declaration
Line 33: Invalid token '>' in class, struct, or interface member declaration
From the parsed html source:
1 <!DOCTYPE html>
2 <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3 <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4 <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5 <!--[if gt IE 8]><!-->
6 <html class="no-js">
7 <!--<![endif]-->
8 <head>
9 <meta charset="utf-8">
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
11 <title>@GetValue("Title")</title>
12 @GetValue("MetaTags")
13 @GetValue("CopyRightNotice")
14
15 <meta name="viewport" content="width=device-width">
16
17 <meta name="author" content="Bluedesk">
18 <link href="/Files/Templates/Designs/bootstrap_bluedesk/css/bootstrap.css" rel="stylesheet">
19 <link href="/Files/Templates/Designs/bootstrap_bluedesk/css/bootstrap-responsive.css" rel="stylesheet">
20 <link href="/Files/Templates/Designs/bootstrap_bluedesk/css/bluedesk.less" rel="stylesheet">
21 <link rel="shortcut icon" href="/Files/Templates/Designs/bootstrap_bluedesk/img/favicon.ico">
22 <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/Files/Templates/Designs/bootstrap_bluedesk/img/apple-touch-icon-144-precomposed.png">
23 <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/Files/Templates/Designs/bootstrap_bluedesk/img/apple-touch-icon-114-precomposed.png">
24 <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/Files/Templates/Designs/bootstrap_bluedesk/img/apple-touch-icon-72-precomposed.png">
25 <link rel="apple-touch-icon-precomposed" href="/Files/Templates/Designs/bootstrap_bluedesk/img/apple-touch-icon-57-precomposed.png">
26 <script src="/Files/Templates/Designs/bootstrap_bluedesk/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
27 @GetValue("Stylesheets")
28 @GetValue("Javascripts")
29 </head>
30
31 <body>
32 <div class="container">
33 <div class="container-fluid">
34 <div class="row-fluid">
35 <div class="span4">
36 <a class="logo" href="index.html">
37 <img alt="logo" title="bizstrap" src="http://slvasoftech.com/images/logo.png">
38 </a>
39 </div>
...[deleted lines]...
93
94 <div class="container-fluid">
95 @inherits RazorTemplateBase<><template>>
96 @using System;
97 @using System.Linq;
98 @using Dynamicweb.Rendering;
99
100
101
102
103 <div>
...[deleted lines]...
142 </body>
143 </html>
Will this be fixed in DW or can i do something else?