This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Text; | |
namespace StringConcat | |
{ | |
class Program | |
{ | |
private static int noLoops = 100000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html,body { | |
height:100%; | |
} | |
body { | |
background-image:url(img/Background.png); | |
background-repeat:repeat; | |
margin:0; | |
font-family:Georgia; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@link-color: #bca36c; | |
@hover-color: #004263; | |
@disabled-color: #bbb; | |
@text-color: #333; | |
html, body { | |
height:100%; | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$link-color: #bca36c; | |
$hover-color: #004263; | |
$disabled-color: #bbb; | |
$text-color: #333; | |
html { | |
height: 100%; | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link-color = #bca36c; | |
hover-color = #004263; | |
disabled-color = #bbb; | |
text-color = #333; | |
html { | |
height:100%; | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Rebundler | |
{ | |
private readonly Assembly assembly; | |
private readonly string virtualPath; | |
private readonly HashSet<string> resourceNames = new HashSet<string>(); | |
public Rebundler(Assembly assembly, string virtualPath) | |
{ | |
this.assembly = assembly; | |
this.virtualPath = virtualPath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class EmbededResourceBundle : Bundle | |
{ | |
private Assembly assembly; | |
private readonly HashSet<string> resourceNames = new HashSet<string>(); | |
private readonly string contentType; | |
public EmbededResourceBundle(Assembly assembly, string virtualPath, string contentType, params IBundleTransform[] transforms) : base(virtualPath, null, transforms) | |
{ | |
this.assembly = assembly; | |
this.contentType = contentType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmbededScriptBundle : EmbededResourceBundle | |
{ | |
public EmbededScriptBundle(Assembly assembly, string virtualPath) : base(assembly, virtualPath, "text/javascript", new JsMinify()) | |
{ | |
ConcatenationToken = ";"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmbededStyleBundle : EmbededResourceBundle | |
{ | |
public EmbededStyleBundle(Assembly assembly, string virtualPath) : base(assembly, virtualPath, "text/css", new CssMinify()) | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Assets | |
{ | |
private static IBundleResolver resolver; | |
internal static IBundleResolver Resolver | |
{ | |
get { return resolver ?? BundleResolver.Current; } | |
set { resolver = value; } | |
} | |
private static IHtmlString RenderTag(string template, params string[] attributes) |
OlderNewer