buunguyen / combres

ASP.NET and MVC performance optimization library ⛺
Other
123 stars 37 forks source link

Can Combres emit attributes/values in <link> tag it generates? #21

Closed razaross444 closed 11 years ago

razaross444 commented 11 years ago

I just integrated the Combres v2 into a project I’m working on and have a quick question….

I’d like to know if there’s a way to control what attributes/values Combres output for a , such as the "media" attribute like so:

razaross444 commented 11 years ago

Ok, got the answer....

VB: <%= WebExtensions.CombresLink("siteCss", New With {.media = "screen"})%> C#: <%= WebExtensions.CombresLink("siteCss", new {media = "screen"})%> MVC Razor: @Url.CombresLink("siteCss", new {media="screen"})

Thanks Buu!