Hi,
We have a MVC project where we are already using spark templates. We also want to explore using .shade files where in we plan to use jade templates for the UI. I updated Spark using nuget to the latest version
And then, I have added a test controller and a view that is saved as Index.shade. But for whatever reason, it does not detect .shade file. I cannot understand what I am missing to make this work.
my Views/Shared/_global.spark file looks like this
<use namespace="System"/>
<use namespace="System.Collections.Generic"/>
<use namespace="System.Linq"/>
<use namespace="System.Web.Mvc"/>
<use namespace="System.Web.Routing"/>
<use namespace="System.Web.Mvc.Html"/>
<use assembly="Spark.Web.Mvc"/>
<use assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
and SparkWebMvc.cs looks like this:
public static class SparkWebMvc {
public static void Start() {
var settings = new SparkSettings();
settings.SetAutomaticEncoding(true);
// Note: you can change the list of namespace and assembly
// references in Views\Shared\_global.spark
SparkEngineStarter.RegisterViewEngine(settings);
}
}
We don't have any other special configuration on our end. Any help to resolve this would be greatly appreciated.
Thanks,
Nagesh