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 IList assembliesToReference
= new ArrayList();
35 set { debug = value; }
38 public bool SaveToDisk
40 get { return saveToDisk; }
41 set { saveToDisk = value; }
44 public bool BatchCompile
46 get { return batchCompile; }
47 set { batchCompile = value; }
50 public string CommonScriptsDirectory
52 get { return commonScriptsDirectory; }
53 set { commonScriptsDirectory = value; }
56 public string SaveDirectory
58 get { return saveDirectory; }
59 set { saveDirectory = value; }
62 public IList AssembliesToReference
64 get { return assembliesToReference; }
67 public BooViewEngineOptions()
69 AssembliesToReference
.Add(typeof(BooViewEngineOptions
).Assembly
);//Brail's assembly
70 AssembliesToReference
.Add(typeof(Controller
).Assembly
);//MonoRail.Framework's assembly