This project has moved and is read-only. For the latest updates, please go here.

Classy resource registered Style/Script

Dec 18, 2014 at 12:17 AM
Edited Dec 18, 2014 at 12:18 AM
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 2:23 AM
I don't think that question belongs here. It looks like a general Orchard question.
Dec 29, 2014 at 4:23 PM
Actually, it's in the CustomCssHandler.cs in Vandelay.Industries.. :) Sorry I was not clear enough.
Dec 30, 2014 at 1: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.