Sha256: 9928a19bf66bcb9ac4f270cac3d7fb84df29f53bb05aaa38dd5fc58c8fde852a
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require 'hubdown/style_scraper' 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 ) end def get_page links = @scraper.get_css_links body = @body filename = @filename template = ERB.new( File.read("lib/hubdown/template.html.erb"), nil, "-" ) page = template.result(binding) page end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hubdown-0.0.6 | lib/hubdown/page_builder.rb |
hubdown-0.0.5 | lib/hubdown/page_builder.rb |