I use Binsor for configuring Castle and Spark as my default ViewEngine for ASP.NET MVC. This is how I register and resolve the ViewEngine
container.boo
component "Spark.Web.Mvc.SparkViewFactory", IViewEngine, SparkViewFactory
component "Spark.FileSystem.FileSystemViewFolder", IViewFolder, FileSystemViewFolder
global.asax
container.Install(BinsorScript.FromFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "container.boo")));
ViewEngines.Engines.Add(container.Resolve<IViewEngine>());
First thing I want to say is that Spark is a very very nice ViewEngine. After the resulting unpleasantness of using the WebForms ViewEngine and the horrible flashbacks to my ASP days, I decided that I was going to do my best to avoid using it. I mean c'mon, its 2008, we've progressed beyond having to create spaghetti code and not have to resort to ASP.NET WebControls
I'm gonna go over a few of the things I really like about Spark that I've came across so far.
Application.spark
Spark uses a file called Applicartion.spark as the default master template.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...