lib/hubdown/page_builder.rb in hubdown-0.0.7 vs lib/hubdown/page_builder.rb in hubdown-0.0.8
- old
+ new
@@ -1,19 +1,19 @@
-require 'hubdown/style_scraper'
+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"){ '' }
- @scraper = StyleScraper.new( @uri )
+ @style_gen = StyleGenerator.new( @uri )
end
def get_page
- links = @scraper.get_css_links
+ links = @style_gen.get_css_links
body = @body
filename = @filename
template_path = File.dirname(__FILE__) + "/template.html.erb"
template = ERB.new( File.read( template_path ), nil, "-" )
page = template.result(binding)