Sha256: 1b162f0a5d89fd25aa50169658c4ecc4b9f1f72983fd25b9f570a4edc114cd77
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
require 'tilt' module SinatraSilver class App < Sinatra::Base set :root, MagicMirror.sinatra_root # set :app_file, MagicMirror.sinatra_root # set :views, MagicMirror.sinatra_root set :views, Proc.new { File.join(MagicMirror.sinatra_root, "lib", "views") } #set :public_folder, Proc.new { File.join(MagicMirror.sinatra_root, "lib", "views") } get '/' do @command_cache = MagicMirror.command_cache.to_json erb :index # 'Hello world!' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
magic_mirror-0.1.0 | lib/magic_mirror/sinatra_silver.rb |
magic_mirror-0.0.2 | lib/magic_mirror/sinatra_silver.rb |
magic_mirror-0.0.1 | lib/magic_mirror/sinatra_silver.rb |