lib/hubdown/page_builder.rb in hubdown-0.0.15 vs lib/hubdown/page_builder.rb in hubdown-0.0.17

- old
+ new

@@ -2,11 +2,11 @@ require 'hubdown/style_generator' require 'erb' module Hubdown class PageBuilder - + def initialize args @body = args.fetch("body"){ '' } @uri = args.fetch("uri"){ 'https://github.com/knomedia/hubdown' } @filename = args.fetch("filename"){ '' } @style_gen = StyleGenerator.new( @uri ) @@ -17,9 +17,9 @@ body = @body filename = @filename template_path = File.dirname(__FILE__) + "/template.html.erb" template = ERB.new( File.read( template_path ), nil, "-" ) page = template.result(binding) - page + page end end end