Skip to content

Instantly share code, notes, and snippets.

@kei-q
Created January 28, 2011 12:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kei-q/800192 to your computer and use it in GitHub Desktop.
Save kei-q/800192 to your computer and use it in GitHub Desktop.
sinatra + slim + coffeescript sample
sinatra + slim + coffee-script
enable shotgun
path = File.expand_path "../", __FILE__
require 'sinatra'
require 'slim'
require 'coffee-script'
require "#{path}/main"
run Sinatra::Application
get '/' do
slim :index
end
get '/application.js' do
coffee :application
end
html
head
title test
body
h1 test
script(src="/application.js")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment