1 // Copyright 2004-2008 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.
15 namespace Castle
.MonoRail
.Views
.Brail
17 using System
.Collections
;
18 using Boo
.Lang
.Extensions
;
21 public class BooViewEngineOptions
23 private readonly IList assembliesToReference
= new ArrayList();
24 private readonly IList namespacesToImport
= new ArrayList();
25 private bool batchCompile
;
26 private string commonScriptsDirectory
= "CommonScripts";
28 private string saveDirectory
= "Brail_Generated_Code";
29 private bool saveToDisk
;
31 public BooViewEngineOptions()
33 AssembliesToReference
.Add(typeof(BooViewEngineOptions
).Assembly
); //Brail's assembly
34 AssembliesToReference
.Add(typeof(Controller
).Assembly
); //MonoRail.Framework's assembly
35 AssembliesToReference
.Add(typeof(AssertMacro
).Assembly
); //Boo.Lang.Extensions assembly
41 set { debug = value; }
44 public bool SaveToDisk
46 get { return saveToDisk; }
47 set { saveToDisk = value; }
50 public bool BatchCompile
52 get { return batchCompile; }
53 set { batchCompile = value; }
56 public string CommonScriptsDirectory
58 get { return commonScriptsDirectory; }
59 set { commonScriptsDirectory = value; }
62 public string SaveDirectory
64 get { return saveDirectory; }
65 set { saveDirectory = value; }
68 public IList AssembliesToReference
70 get { return assembliesToReference; }
73 public IList NamespacesToImport
75 get { return namespacesToImport; }