Minor style changes
[castle.git] / MonoRail / Castle.MonoRail.Views.Brail / IndependentBooViewEngine.cs
blobb59c8a87651f2be71e1d2ec05062281df1348356
1 namespace Castle.MonoRail.Views.Brail
3 using System.IO;
4 using Framework;
5 using System.Collections;
7 public class IndependentBooViewEngine
9 readonly BooViewEngine bve = new BooViewEngine();
11 public BooViewEngineOptions Options
13 get { return bve.Options; }
16 public IndependentBooViewEngine(IViewSourceLoader viewSourceLoader, BooViewEngineOptions options)
18 bve.Options = options;
19 bve.SetViewSourceLoader(viewSourceLoader);
20 bve.Initialize();
23 public void Process(string templateName, TextWriter output, IDictionary parameters)
25 DummyController controller = new DummyController();
26 controller.PropertyBag = parameters;
27 bve.Process(output, null, controller, templateName);
30 private class DummyController : Controller