Header left Header right
 

Classy web-development dressed in a DSL (EXPLAINED)

Published: October 18th, 2007

This super-sexy DSL runs at lighting speed. It sits on top of Mongrel and was written to be thread-safe, sleek and tiny. And an entire web-application can be written and contained in one file (or a small collection of files)! Think Facebook apps…

The blazing-fast, thread-safe micro-framework was released last week! A new Sinatra resource page has been put up here at http://www.xnot.org/sinatra/

Great for facebook apps and other speed-necessary web-apps. An entire application can be contained in one file!

Here’s a snippet from Sinatra’s introduction tutorial:

get '/' do
            body do
              if posts.empty?
                "There are no posts" + new_post_link
              else
                "
<ul>"+posts.all.collect {|post| "
	<li>"+post[:title]+" -
                  "+post[:body]+"</li>
"}+"</ul>
"+new_post_link
              end
            end
          end

read more | digg story

Enter your comment

Ready. Set. Go.

In terms of the formatting, you're allowed to use markdown, textile, or basic html; it's truly up to you -- what strikes your fancy?

You don't have to worry about your e-mail address being sold to a russian-spam-mafia. I'm only going to use it for my own weird needs; like asking you out for a date on a lonely night of coding.