Sha256: 3a95106caa9bff06842b5251db569d84fe74c1817e3974acd0ffc54f1430888b

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 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_profile)
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
speed_gun-1.0.0.rc1 lib/speed_gun/template.rb