lib/guider/index.rb in guider-0.0.5 vs lib/guider/index.rb in guider-0.0.6
- old
+ new
@@ -8,10 +8,14 @@
@config = Config.new(@options[:index])
@tpl = Template.new(@options[:tpl_dir] + "/index.html")
end
def write
- html = @tpl.apply(:title => "Guides", :content => @config.to_html)
+ html = @tpl.apply({
+ :title => @options[:title],
+ :footer => @options[:footer],
+ :content => @config.to_html,
+ })
File.open(@options[:output] + "/index.html", 'w') {|f| f.write(html) }
end
end
end