webby 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Manifest.txt +3 -0
- data/Rakefile +1 -6
- data/data/templates/blog/month.erb +22 -0
- data/data/templates/blog/post.erb +15 -0
- data/data/templates/blog/year.erb +22 -0
- data/lib/webby/filters/haml.rb +1 -1
- data/lib/webby/filters/sass.rb +1 -1
- data/lib/webby.rb +5 -1
- metadata +5 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -52,6 +52,9 @@ data/tasks/setup.rb
|
|
52
52
|
data/tasks/validate.rake
|
53
53
|
data/templates/_partial.erb
|
54
54
|
data/templates/atom_feed.erb
|
55
|
+
data/templates/blog/month.erb
|
56
|
+
data/templates/blog/post.erb
|
57
|
+
data/templates/blog/year.erb
|
55
58
|
data/templates/page.erb
|
56
59
|
data/templates/presentation.erb
|
57
60
|
examples/presentation/Rakefile
|
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ PROJ.url = 'http://webby.rubyforge.org/'
|
|
15
15
|
PROJ.description = paragraphs_of('README.txt', 3).join("\n\n")
|
16
16
|
PROJ.rubyforge.name = 'webby'
|
17
17
|
PROJ.version = Webby::VERSION
|
18
|
-
PROJ.release_name = '
|
18
|
+
PROJ.release_name = 'Forgetful Foobar'
|
19
19
|
|
20
20
|
PROJ.ruby_opts = %w[-W0]
|
21
21
|
PROJ.exclude << %w(^examples/[^/]+/output ^tasks/archive ^tags$)
|
@@ -32,11 +32,6 @@ PROJ.ann.email[:server] = 'smtp.gmail.com'
|
|
32
32
|
PROJ.ann.email[:port] = 587
|
33
33
|
|
34
34
|
PROJ.ann.text = <<-ANN
|
35
|
-
== FUN FACT
|
36
|
-
|
37
|
-
La Paz, the capital city of Bolivia, is the highest capital in the
|
38
|
-
world at over 17,000 feet (5,181 m).
|
39
|
-
|
40
35
|
== POST SCRIPT
|
41
36
|
|
42
37
|
Visit the Webby forum to chat with other Webby-Heads:
|
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
title: <%= title %>
|
3
|
+
created_at: <%= Time.now.to_y %>
|
4
|
+
filter: erb
|
5
|
+
dirty: true
|
6
|
+
---
|
7
|
+
<h2><%%= h(@page.title) %></h2>
|
8
|
+
|
9
|
+
<%%
|
10
|
+
articles = @pages.find(:all, :in_directory => @page.dir, :recursive => true,
|
11
|
+
:sort_by => "created_at", :reverse => true)
|
12
|
+
articles.delete(@page)
|
13
|
+
paginate(articles, 10) do |page|
|
14
|
+
-%>
|
15
|
+
<div class="article">
|
16
|
+
<h1><%%= link_to_page(page) %><span class="date">(<%%= page.created_at.strftime('%Y-%m-%d') %>)</span></h1>
|
17
|
+
|
18
|
+
<div class="body">
|
19
|
+
<%%= render(page) %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<%% end -%>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
title: <%= title %>
|
3
|
+
created_at: <%= Time.now.to_y %>
|
4
|
+
filter:
|
5
|
+
- textile
|
6
|
+
---
|
7
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc congue ipsum vestibulum libero. Aenean vitae justo. Nam eget tellus. Etiam convallis, est eu lobortis mattis, lectus tellus tempus felis, a ultricies erat ipsum at metus.
|
8
|
+
|
9
|
+
h3. Litora Sociis
|
10
|
+
|
11
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi et risus. Aliquam nisl. Nulla facilisi. Cras accumsan vestibulum ante. Vestibulum sed tortor. Praesent tempus fringilla elit. Ut elit diam, sagittis in, nonummy in, gravida non, nunc. Ut orci. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nam egestas, orci eu imperdiet malesuada, nisl purus fringilla odio, quis commodo est orci vitae justo. Aliquam placerat odio tincidunt nulla. Cras in libero. Aenean rutrum, magna non tristique posuere, erat odio eleifend nisl, non convallis est tortor blandit ligula. Nulla id augue.
|
12
|
+
|
13
|
+
bq. Nullam mattis, odio ut tempus facilisis, metus nisl facilisis metus, auctor consectetuer felis ligula nec mauris. Vestibulum odio erat, fermentum at, commodo vitae, ultrices et, urna. Mauris vulputate, mi pulvinar sagittis condimentum, sem nulla aliquam velit, sed imperdiet mi purus eu magna. Nulla varius metus ut eros. Aenean aliquet magna eget orci. Class aptent taciti sociosqu ad litora.
|
14
|
+
|
15
|
+
Vivamus euismod. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nibh ut turpis dictum sagittis. Aliquam vel velit a elit auctor sollicitudin. Nam vel dui vel neque lacinia pretium. Quisque nunc erat, venenatis id, volutpat ut, scelerisque sed, diam. Mauris ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec mattis. Morbi dignissim sollicitudin libero. Nulla lorem.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
title: <%= title %>
|
3
|
+
created_at: <%= Time.now.to_y %>
|
4
|
+
filter: erb
|
5
|
+
dirty: true
|
6
|
+
---
|
7
|
+
<h2><%%= h(@page.title) %></h2>
|
8
|
+
|
9
|
+
<%%
|
10
|
+
articles = @pages.find(:all, :in_directory => @page.dir, :recursive => true,
|
11
|
+
:sort_by => "created_at", :reverse => true)
|
12
|
+
articles.delete(@page)
|
13
|
+
paginate(articles, 10) do |page|
|
14
|
+
-%>
|
15
|
+
<div class="article">
|
16
|
+
<h1><%%= link_to_page(page) %><span class="date">(<%%= page.created_at.strftime('%Y-%m-%d') %>)</span></h1>
|
17
|
+
|
18
|
+
<div class="body">
|
19
|
+
<%%= render(page) %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<%% end -%>
|
data/lib/webby/filters/haml.rb
CHANGED
@@ -2,7 +2,7 @@ try_require 'haml'
|
|
2
2
|
|
3
3
|
# Render text via the Haml library
|
4
4
|
Webby::Filters.register :haml do |input, cursor|
|
5
|
-
opts = cursor.page.haml_options || {}
|
5
|
+
opts = ::Webby.site.haml_options.merge(cursor.page.haml_options || {})
|
6
6
|
b = cursor.renderer.get_binding
|
7
7
|
Haml::Engine.new(input, opts).to_html(b)
|
8
8
|
end
|
data/lib/webby/filters/sass.rb
CHANGED
@@ -2,7 +2,7 @@ try_require 'sass'
|
|
2
2
|
|
3
3
|
# Render text via the Sass library (part of Haml)
|
4
4
|
Webby::Filters.register :sass do |input, cursor|
|
5
|
-
opts = cursor.page.sass_options || {}
|
5
|
+
opts = ::Webby.site.sass_options.merge(cursor.page.sass_options || {})
|
6
6
|
Sass::Engine.new(input, opts).render
|
7
7
|
end
|
8
8
|
|
data/lib/webby.rb
CHANGED
@@ -18,7 +18,7 @@ Logging::Appender.stdout.layout = Logging::Layouts::Pattern.new(
|
|
18
18
|
module Webby
|
19
19
|
|
20
20
|
# :stopdoc:
|
21
|
-
VERSION = '0.8.
|
21
|
+
VERSION = '0.8.4' # :nodoc:
|
22
22
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
|
23
23
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
|
24
24
|
# :startdoc:
|
@@ -57,6 +57,10 @@ module Webby
|
|
57
57
|
:remote_dir => '/not/a/valid/dir',
|
58
58
|
:rsync_args => %w(-av),
|
59
59
|
|
60
|
+
# Global options for HAML and SASS
|
61
|
+
:haml_options => {},
|
62
|
+
:sass_options => {},
|
63
|
+
|
60
64
|
# Options passed to the 'tidy' program when the tidy filter is used
|
61
65
|
:tidy_options => '-indent -wrap 80',
|
62
66
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-03 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -131,6 +131,9 @@ files:
|
|
131
131
|
- data/tasks/validate.rake
|
132
132
|
- data/templates/_partial.erb
|
133
133
|
- data/templates/atom_feed.erb
|
134
|
+
- data/templates/blog/month.erb
|
135
|
+
- data/templates/blog/post.erb
|
136
|
+
- data/templates/blog/year.erb
|
134
137
|
- data/templates/page.erb
|
135
138
|
- data/templates/presentation.erb
|
136
139
|
- examples/presentation/Rakefile
|