Sha256: 64282b61e46deae2e1d783e7c14ee44b49becd02eae1a0276b6b36bf6074bdb8

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

require 'mustache'

class WebPreview
  attr_reader :uploads

  def initialize(uploads)
    @uploads = uploads
  end

  def generate_html
    lib_path = File.expand_path(File.dirname(__FILE__))
    template = File.read(lib_path + "/template.mustache.html")
    
    Mustache.render(template, :uploads => @uploads, :travis_id =>  ENV['TRAVIS_JOB_ID'])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
second_curtain-0.3.0 lib/second_curtain/web_preview.rb
second_curtain-0.2.4 lib/second_curtain/web_preview.rb
second_curtain-0.2.3 lib/second_curtain/web_preview.rb
second_curtain-0.2.2 lib/second_curtain/web_preview.rb
second_curtain-0.2.0 lib/second_curtain/web_preview.rb