aspnetmvc

Using Spark with ASP.NET MVC and Binsor

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>());

posted @ Wednesday, October 01, 2008 12:59 PM | Feedback (0)

First look at Spark ViewEngine for ASP.NET MVC - Part 1

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...

posted @ Wednesday, October 01, 2008 12:51 PM | Feedback (0)