private void DefineSiteStyle(Orchard.UI.Resources.ResourceManifest manifest, string area)
        {
            var formatted = area.Replace('-', '_');

            manifest.DefineStyle("site_" + formatted)
            .SetUrl("site-" + area + ".min.css", "site-" + area + ".css")
            .SetDependencies("nyroModal");

            manifest.DefineStyle("site_" + formatted + "_rtl")
            .SetUrl("site-" + area + "-rtl.min.css", "site-" + area + "-rtl.css")
            .SetDependencies("site_" + formatted);
        }
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            Orchard.UI.Resources.ResourceManifest manifest = builder.Add();
            manifest.DefineScript("DataTables").SetUrl("jquery.dataTables.min.js").SetCdn("http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js").SetDependencies("jQuery");
            manifest.DefineStyle("DataTables").SetUrl("jquery.dataTables.css").SetCdn("http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables.css");

            manifest.DefineScript("jquerymin").SetUrl("jquery.min.js");
            manifest.DefineScript("jqplot").SetUrl("jquery.jqplot.min.js").SetDependencies("jQuery");
            manifest.DefineScript("excanvas").SetUrl("excanvas.js").SetDependencies("jQuery");
            manifest.DefineStyle("jqplot").SetUrl("jquery.jqplot.css");

            manifest.DefineScript("jqplotpointlabels").SetUrl("jqplot.pointLabels.min.js").SetDependencies("jQuery");
            manifest.DefineScript("jqplotcursor").SetUrl("jqplot.cursor.min.js").SetDependencies("jQuery");
            manifest.DefineScript("jqplothighlighter").SetUrl("jqplot.highlighter.min.js").SetDependencies("jQuery");
            manifest.DefineScript("jqplotcanvasoverlay").SetUrl("jqplot.canvasOverlay.min.js").SetDependencies("jQuery");
        }
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            Orchard.UI.Resources.ResourceManifest manifest = builder.Add();
            manifest.DefineScript("myscript").SetUrl("myjqueryscript.js").SetDependencies("jQuery");

            manifest.DefineStyle("mystyle").SetUrl("mystyle.css");
        }
        public void DefineStyles(ResourceManifest manifest, string key, string currentVersion, params string[] previousVersions) 
        {
            var versions = new List<string>(previousVersions) { currentVersion };
            //versions.AddRange(previousVersions);

            Func<string, string, string> format = (a,b) => {
                return string.Format(keyFormat, a, b);
            };

            string commonDependency = format(key, "common");

            foreach (var version in versions) 
            { 
                manifest.DefineStyle(format(key, "common"))
                    .SetUrl(VersionPath(version, "kendo.common.min.css"))
                    .SetVersion(version);

                manifest.DefineStyle(format(key, "default"))
                    .SetUrl(VersionPath(version, "kendo.default.min.css"))
                    .SetDependencies(commonDependency)
                    .SetVersion(version);

                manifest.DefineStyle(format(key, "black"))
                    .SetUrl(VersionPath(version, "kendo.black.min.css"))
                    .SetDependencies(commonDependency)
                    .SetVersion(version);

                manifest.DefineStyle(format(key, "blueopal"))
                    .SetUrl(VersionPath(version, "kendo.blueopal.min.css"))
                    .SetDependencies(commonDependency)
                    .SetVersion(version);

                manifest.DefineStyle(format(key, "metro"))
                    .SetUrl(VersionPath(version, "kendo.metro.min.css"))
                    .SetDependencies(commonDependency)
                    .SetVersion(version);

                manifest.DefineStyle(format(key, "silver"))
                    .SetUrl(VersionPath(version, "kendo.silver.min.css"))
                    .SetDependencies(commonDependency)
                    .SetVersion(version);

            }

        }