git » homepage.git » master » tree

[master] / archive / forums / hacker-news / raw / items / 634607.json

{"by":"10ren","id":634607,"kids":[634611,634735],"parent":634576,"text":"Is the whole thing really just the one file (110 lines)? <a href=\"http://github.com/alandipert/step/blob/42cee9ecd360205def359ce2719f34120edee499/src/main/scala/Step.scala\" rel=\"nofollow\">http://github.com/alandipert/step/blob/42cee9ecd360205def359...</a>\nI 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?)<p>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):<p><pre><code>    get(\"/date/:year/:month/:day\") {\n      &#60;ul&#62;\n        &#60;li&#62;Year: {params(\"year\")}&#60;/li&#62;\n        &#60;li&#62;Month: {params(\"month\")}&#60;/li&#62;\n        &#60;li&#62;Day: {params(\"day\")}&#60;/li&#62;\n      &#60;/ul&#62;\n  }</code></pre>","time":1243766591,"type":"comment"}