Re:Sinatra clone in Scala
by 10ren on Sunday May 31, 2009 @06:43AM
(#634607)
Is the whole thing really just the one file (110 lines)? http://github.com/alandipert/step/blob/42cee9ecd360205def359...
I know it describes itself as "tiny", and sinatra is also tiny, but that seems... small. (I don't know anything about Scala - is it especially concise?)
I like how the HTML seems to be a first-class datatype in the example (is that a Scala thing? I'd better do some research):
Re:Sinatra clone in Scala
by wooby on Sunday May 31, 2009 @06:49AM
(#634611)
Yeah it's pretty small. With Scala you basically get free HTML templating because of XML literal support. It's missing a lot of Sinatra stuff though: 'splat' and regex URI pattern matching, file uploads, sessions...
I like how the HTML seems to be a first-class datatype in the example (is that a Scala thing? I'd better do some research):