Release Notes 1.5.1
Minor changes including:
- Removal of the class constraint on strongly typed Models in Spark Views which means you can now also use a value type for the viewmodel.
- ViewBag support for MVC3
Release Notes 1.5
There have been a lot of minor changes going on since version 1.1, but most important to note are the major changes which include:
- Support for HTML5 "section" tag. Spark has now renamed its own section tag to "segment" instead to avoid clashes. You can still use "section" in a Spark sense for legacy support by specifying ParseSectionAsSegment = true if needed while you transition
- Bindings - this is a massive feature that further simplifies your views by giving you a powerful way to move code out of the view while maintaining an html look. You can read a blog post on the topic and the official documentation
- The default output encoding is now specifically UTF8 instead of an unknown "Default", and you can configure it under the "system.web/globalization" section in you web.config and Spark will read from there.
- Bug fix for empty <use master="" /> tag which was not recognised before and would just us the default master page
- Bug fix for compiler warnings that were treated as errors during a batch compile process. These are now ignored
- The batch compiler can now select dynamically between v3.5 and v4.0 of the .NET Framework depending on which is already loaded
- Spark now supports a <markdown> tag within which you can write markdown (just like on Stack Overflow) which will be rendered out to html.
There are 3 main releases the you can use depending on your project:
- Working on the latest stuff? Get the version for MVC3 which targets .NET 4
- Latest .NET Framework yes, but MVC3 too bleeding edge, or got a big investment in MVC2? Then get the MVC2 version which targets .NET 4
- Part of that large group of devs who are still on .NET 3.5? Go ahead and get the MVC2 version that targets .NET 3.5
You can download this release here or simply get it via NuGet as a reference on your project from within Visual Studio 2010.
If you have any questions, then feel free to ask on Stack Overflow Spark-View-Engine tag
, or on the Google Group email list