Last active
December 22, 2015 01:08
-
-
Save drobbins/6393817 to your computer and use it in GitHub Desktop.
Sinatra vs. Express + Coffeescript.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = require('express')() | |
app.get '/hi', (req, res) -> | |
res.end "Hello World" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/hi' do | |
"Hello World!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice! What happens when you start adding MongoDB calls in, though?