Sha256: 4d0ec84ebc8443af7e5ed645957e0b8aaa409d1fef64cb21fe3878382d4c8511
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
require 'rest-client' require 'sinatra/base' require 'sinatra/content_for' class TestApp < Sinatra::Base helpers Sinatra::ContentFor set :haml, :format => :html5 # set :markdown, :layout_engine => :haml, :layout => :post set :root, File.dirname(__FILE__) get '/available_rrds' do haml :available_rrds end get '/graph' do haml :graph end get '/collectd' do haml :collectd end # css def self.dynamic_css(path) get "/stylesheets/#{path}.css" do content_type :css scss "stylesheets/#{path}".to_sym end end dynamic_css('available_rrds') dynamic_css('graph') end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rrd-grapher-1.0.3 | example_app/app.rb |
rrd-grapher-1.0.2 | example_app/app.rb |
rrd-grapher-1.0.1 | example_app/app.rb |
rrd-grapher-1.0.0 | example_app/app.rb |