1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
18 namespace Castle
.MonoRail
.Views
.Brail
20 using System
.Collections
;
21 using Castle
.MonoRail
.Framework
;
23 public class BooViewEngineOptions
28 string commonScriptsDirectory
= "CommonScripts";
29 string saveDirectory
= "Brail_Generated_Code";
30 readonly IList assembliesToReference
= new ArrayList();
31 readonly IList namespacesToImport
= new ArrayList();
36 set { debug = value; }
39 public bool SaveToDisk
41 get { return saveToDisk; }
42 set { saveToDisk = value; }
45 public bool BatchCompile
47 get { return batchCompile; }
48 set { batchCompile = value; }
51 public string CommonScriptsDirectory
53 get { return commonScriptsDirectory; }
54 set { commonScriptsDirectory = value; }
57 public string SaveDirectory
59 get { return saveDirectory; }
60 set { saveDirectory = value; }
63 public IList AssembliesToReference
65 get { return assembliesToReference; }
68 public IList NamespacesToImport
70 get { return namespacesToImport; }
73 public BooViewEngineOptions()
75 AssembliesToReference
.Add(typeof(BooViewEngineOptions
).Assembly
);//Brail's assembly
76 AssembliesToReference
.Add(typeof(Controller
).Assembly
);//MonoRail.Framework's assembly
77 AssembliesToReference
.Add(typeof(Boo
.Lang
.Extensions
.AssertMacro
).Assembly
);//Boo.Lang.Extensions assembly