mercury 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Mercury.gemspec +1 -1
- data/VERSION +1 -1
- data/lib/mercury.rb +40 -1
- metadata +1 -1
data/Mercury.gemspec
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/mercury.rb
CHANGED
@@ -13,4 +13,43 @@ class Mercury < Sinatra::Default
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
end
|
16
|
+
end
|
17
|
+
|
18
|
+
__END__
|
19
|
+
|
20
|
+
@@ layout
|
21
|
+
!!!
|
22
|
+
%html{ :xmlns => "http://www.w3.org/1999/xhtml", :lang => "en", 'xml:lang' => "en" }
|
23
|
+
%head
|
24
|
+
%title Mercury
|
25
|
+
- ['reset','text','960','app'].each do |css|
|
26
|
+
%link{ :href => "/stylesheets/#{css}.css", :rel => "stylesheet", :type => "text/css", :media => "screen", :charset => "utf-8" }
|
27
|
+
%body
|
28
|
+
#header
|
29
|
+
.container_12
|
30
|
+
%small{:style => 'font-style:italic;float:right;'} WireFrame Tool
|
31
|
+
%h1{:style => 'margin:0;padding:0;'}
|
32
|
+
%a{:href => '/', :style => 'color:white;text-decoration:none;'} Mercury
|
33
|
+
|
34
|
+
#wrap
|
35
|
+
.container_16
|
36
|
+
= yield
|
37
|
+
.clear
|
38
|
+
#footer
|
39
|
+
.container_12
|
40
|
+
.grid_4.prefix_8
|
41
|
+
%p Jack Russell Software Company, LLC
|
42
|
+
|
43
|
+
- ['jquery-1.4.2.min'].each do |js|
|
44
|
+
%script{:src => "/javascripts/#{js}.js", :type => 'text/javascript'}
|
45
|
+
|
46
|
+
@@ index
|
47
|
+
.grid_16
|
48
|
+
%p Welcome
|
49
|
+
|
50
|
+
%ul
|
51
|
+
- Dir.glob('views/**/*.haml').each do |f|
|
52
|
+
- unless f =~ /index/ or f =~ /layout/
|
53
|
+
%li
|
54
|
+
%a{:href => f.gsub(/views/,'').match(/(.*).haml$/)[1]}= f.match(/\/(.*).haml$/)[1]
|
55
|
+
|