woody 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/woody/version.rb +1 -2
- data/lib/woody.rb +7 -3
- data/templates/layout.html +1 -1
- metadata +1 -1
data/lib/woody/version.rb
CHANGED
data/lib/woody.rb
CHANGED
@@ -314,6 +314,10 @@ module Woody
|
|
314
314
|
|
315
315
|
end
|
316
316
|
|
317
|
-
|
318
|
-
|
319
|
-
|
317
|
+
def link_to(name, url)
|
318
|
+
return %Q{<a href="#{url}">#{name}</a>}
|
319
|
+
end
|
320
|
+
|
321
|
+
def generator_meta_tag()
|
322
|
+
return %Q{<meta name="generator" content="Woody #{Woody::VERSION}" />}
|
323
|
+
end
|
data/templates/layout.html
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title><%= $config['title'] %></title>
|
5
|
+
<%= generator_meta_tag %>
|
5
6
|
<link rel="stylesheet" type="text/css" href="/assets/stylesheet.css" />
|
6
7
|
</head>
|
7
8
|
<body>
|
8
9
|
<h1><%= link_to $config['title'], "/" %></h1>
|
9
10
|
<h2><%= $config['subtitle'] %></h2>
|
10
11
|
<hr />
|
11
|
-
|
12
12
|
<%= yield %>
|
13
13
|
</body>
|
14
14
|
</html>
|