1 namespace Castle
.MonoRail
.Views
.Brail
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
);
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