Skip to content
Browse files

Added MVC4 nuget

  • Loading branch information...
1 parent 080937a commit f7ca99c5eb5605349e0c13442cbcc846c5798974 @RobertTheGrey RobertTheGrey committed Mar 11, 2013
View
2 NuGet/PackAndPush.bat
@@ -1,9 +1,11 @@
nuget pack Spark\Spark.nuspec
nuget pack Spark.Web.Mvc2\Spark.Web.Mvc2.nuspec
nuget pack Spark.Web.Mvc3\Spark.Web.Mvc3.nuspec
+nuget pack Spark.Web.Mvc4\Spark.Web.Mvc4.nuspec
nuget push Spark.1.7.5.1.nupkg
nuget push Spark.Web.Mvc2.1.7.5.1.nupkg
nuget push Spark.Web.Mvc3.1.7.5.1.nupkg
+nuget push Spark.Web.Mvc4.1.0.0.0.nupkg
pause
View
BIN NuGet/Spark.Web.Mvc4.1.0.0.0.nupkg
Binary file not shown.
View
18 NuGet/Spark.Web.Mvc4/Content/App_Start/SparkWebMvc.cs.pp
@@ -0,0 +1,18 @@
+using System.Web.Mvc;
+using Spark;
+using Spark.Web.Mvc;
+
+[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.SparkWebMvc), "Start")]
+
+namespace $rootnamespace$.App_Start {
+ 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);
+ }
+ }
+}
View
9 NuGet/Spark.Web.Mvc4/Content/Views/Shared/_global.spark
@@ -0,0 +1,9 @@
+<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"/>
View
16 NuGet/Spark.Web.Mvc4/Spark.Web.Mvc4.nuspec
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <id>Spark.Web.Mvc4</id>
+ <version>1.0.0.0</version>
+ <authors>Louis DeJardin &amp; Robert Greyling</authors>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>Spark View Engine for ASP.NET MVC 4.</description>
+ <summary>Spark View Engine for ASP.NET MVC 4.</summary>
+ <language>en-US</language>
+ <dependencies>
+ <dependency id="Spark" version="1.7.5.1" />
+ <dependency id="WebActivator" version="1.4.1" />
+ </dependencies>
+ </metadata>
+</package>
View
BIN NuGet/Spark.Web.Mvc4/lib/NET4/Spark.Web.Mvc.dll
Binary file not shown.

0 comments on commit f7ca99c

Please sign in to comment.
Something went wrong with that request. Please try again.