Spark looks like an excellent alternative view engine. It’s appeal is that the HTML dominates the view instead of <asp:controls>. Maybe its because I like rails, but it just feels more natural. Plus you still get the power & familiarity of .Net – in any form! It supports IronRuby & IronPython even!
So what happens when you take Spark, ASP.Net MVC, FluentMigrator, and FluentNHibernate.. will it blend? Sure, and here’s how.
- create and ASP.Net MVC web application.
- follow this guide to replace the default view engine
- use the same simplistic example migration and setup from my InstantApp
- Then just add a view and the code to list the users
You can grab the code from http://github.com/jcoffman/csinctools, where you’ll also find the code for InstantApp.
Controller method:

View:
Result:

By the way, the top image is from the book “The People of Sparks” which is the second in the City of Ember series. The first is better; never read the third.
blog comments powered by