Sha256: 8b07ecb1b8f1a7d45452fd07aae771be86f009eee2a2ca7e9d14af56fd5e6aec
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
helpers do def bowl_js "#{app_root}/bowl.js" end end get '/bowl.js' do content_type 'application/javascript' @js ||= ( js = nil File.open(File.expand_path '../js/bowl.js', File.dirname(__FILE__)) do |f| js = f.read end ERB.new(js).result(binding) ) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bowl-0.0.2 | lib/bowl/app/controllers/js.rb |
bowl-0.0.1 | lib/bowl/app/controllers/js.rb |