This project has moved. For the latest updates, please go here.

Classy resource registered Style/Script

Dec 17, 2014 at 11:17 PM
Edited Dec 17, 2014 at 11:18 PM
I see you have URL scripts capable of handling manifest entries for Type = Script. It would make sense to have it also handle type = "stylesheet"

Something like?
var scriptsByName = _resourceManager.Value.FindResource(new RequireSettings() 
                                                                                                 { Name = script, Type = "script" });
var stylesByName = _resourceManager.Value.FindResource(new RequireSettings() 
                                                                                                { Name = script, Type = "stylesheet" });
if (scriptsByName != null) _resourceManager.Value.Require("script", script);
if (stylesByName != null) _resourceManager.Value.Require("stylesheet", script);
Dec 28, 2014 at 1:23 AM
I don't think that question belongs here. It looks like a general Orchard question.
Dec 29, 2014 at 3:23 PM
Actually, it's in the CustomCssHandler.cs in Vandelay.Industries.. :) Sorry I was not clear enough.
Dec 30, 2014 at 12:05 AM
Not sure how it would know that it's a stylesheet resource, but please go ahead and submit a pull request if you need that. I'll take it.