examples/config.rb in rack-jquery_ui-1.0.2 vs examples/config.rb in rack-jquery_ui-1.1.0
- old
+ new
@@ -23,10 +23,14 @@
get "/microsoft-cdn" do
haml :accordion, :layout => :microsoft
end
+ get "/cloudflare-cdn" do
+ haml :accordion, :layout => :cloudflare
+ end
+
get "/unspecified-cdn" do
haml :accordion, :layout => :unspecified
end
get "/ui/:plugin" do |plugin|
@@ -60,10 +64,23 @@
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
font-size: 62.5%;
}
= yield
+@@cloudflare
+%html
+ %head
+ = Rack::JQuery.cdn( :cloudflare )
+ = Rack::JQueryUI.cdn( :cloudflare )
+ %link{ href: "http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css", rel: "stylesheet"}
+ :css
+ body {
+ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
+ font-size: 62.5%;
+ }
+ = yield
+
@@mediatemple
%html
%head
= Rack::JQuery.cdn( :media_temple )
= Rack::JQueryUI.cdn( :media_temple )
@@ -111,9 +128,12 @@
%a{ href: "/media-temple-cdn" }
media-temple
%p
%a{ href: "/microsoft-cdn" }
microsoft-cdn
+%p
+ %a{ href: "/cloudflare-cdn" }
+ cloudflare-cdn
%p
%a{ href: "/unspecified-cdn" }
unspecified-cdn
%p
%a{ href: "/ui/accordion" }
\ No newline at end of file