spark
We rolled out the first drop of an internal web application today. Quick trip to TeamCity, fire the Release build and wait for the ZIP to be spat out at the end. Bing! Less than a minute later we have a fully tested deployable version of the site all zipped up.
We uploaded it to the server, hit the index and... nothing but a Yellow Screen of Death, ""The view 'Index' or its master could not be found.". Uhoh.
A quick look in the ZIP confirmed that the Views folder held only a lonely looking web.config file. Not exactly what was supposed...
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...