Sha256: f8ca161012ae2e3a28716a1ed9d0d92544c544116200bd9f9e294bbfaece5ebb

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

require 'speed_gun'
require 'slim'

class SpeedGun::Template < Slim::Template
  TEMPLATE_PATH =
    File.join(File.dirname(__FILE__), 'app/views/meter.html.slim')

  def self.render
    new.render(SpeedGun.current)
  end

  def initialize
    super(TEMPLATE_PATH, pretty: false)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
speed_gun-0.0.4 lib/speed_gun/template.rb
speed_gun-0.0.3 lib/speed_gun/template.rb
speed_gun-0.0.2 lib/speed_gun/template.rb
speed_gun-0.0.1 lib/speed_gun/template.rb