Permalink
Browse files

remove refs to test proj

  • Loading branch information...
mythz committed Feb 5, 2012
1 parent 9d2e6a6 commit 333ae7308420fe90c5fcd97cb9e8f1f8d82175b4
Showing with 18 additions and 4 deletions.
  1. +1 −1 NuGet/bundler.nuspec
  2. +17 −3 NuGet/content/Mvc.Bundler.cs
View
@@ -2,7 +2,7 @@
<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>Bundler</id>
- <version>0.91</version>
+ <version>0.93</version>
<authors>Demis Bellot</authors>
<owners>Demis Bellot</owners>
<summary>Css, Less, CoffeeScript, JavaScript compiler, minifier and combiner for ASP.NET MVC websites.</summary>
@@ -7,7 +7,6 @@
using System.Web.Hosting;
using System.Web.Mvc;
using System.Web.Routing;
-using SocialBootstrapApi;
namespace ServiceStack.Mvc
{
@@ -100,6 +99,21 @@ private static string RewriteUrl(this string relativePath, BundleOptions options
return DefaultUrlFilter(relativePath, options);
}
+ public static MvcHtmlString ToMvcHtmlString(this string s)
+ {
+ return MvcHtmlString.Create(s);
+ }
+
+ public static MvcHtmlString ToMvcHtmlString(this TagBuilder t)
+ {
+ return t.ToString().ToMvcHtmlString();
+ }
+
+ public static MvcHtmlString ToMvcHtmlString(this TagBuilder t, TagRenderMode mode)
+ {
+ return t.ToString(mode).ToMvcHtmlString();
+ }
+
public static MvcHtmlString Link(this HtmlHelper html, string rel, string href, object htmlAttributes = null, BundleOptions options = BundleOptions.Normal)
{
if (string.IsNullOrEmpty(href))
@@ -198,9 +212,9 @@ public static MvcHtmlString RenderJsBundle(this HtmlHelper html, string bundlePa
var baseUrl = VirtualPathUtility.GetDirectory(bundlePath);
if (options == BundleOptions.Combined)
- return html.Js(bundlePath.Replace(".bundle", ""));
+ return html.Js(bundlePath.Replace(".bundle", ""), options);
if (options == BundleOptions.MinifiedAndCombined)
- return html.Js(bundlePath.Replace(".js.bundle", ".min.js"));
+ return html.Js(bundlePath.Replace(".js.bundle", ".min.js"), options);
var jsFiles = File.ReadAllLines(filePath);

0 comments on commit 333ae73

Please sign in to comment.