toto 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/toto.rb +5 -1
- data/toto.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.7
|
data/lib/toto.rb
CHANGED
|
@@ -123,7 +123,7 @@ module Toto
|
|
|
123
123
|
include Template
|
|
124
124
|
|
|
125
125
|
def initialize ctx = {}, config = {}, path = "/"
|
|
126
|
-
@config, @
|
|
126
|
+
@config, @context, @path = config, ctx, path
|
|
127
127
|
@articles = Site.articles(@config[:ext]).reverse.map do |a|
|
|
128
128
|
Article.new(File.new(a), @config)
|
|
129
129
|
end
|
|
@@ -146,6 +146,10 @@ module Toto
|
|
|
146
146
|
instance_eval File.read("#{Paths[:templates]}/#{page}.builder")
|
|
147
147
|
end
|
|
148
148
|
alias :to_atom to_xml
|
|
149
|
+
|
|
150
|
+
def method_missing m, *args, &blk
|
|
151
|
+
@context.respond_to?(m) ? @context.send(m) : super
|
|
152
|
+
end
|
|
149
153
|
end
|
|
150
154
|
end
|
|
151
155
|
|
data/toto.gemspec
CHANGED