Sunday, December 16, 2012

Sssmoke - When even Sinatra is too much

Sometimes you don't need a web framework, no matter how light - you just want to slap a Ruby script or two on a web server. Enter Sssmoke:
gem install sssmoke

Put your erb templates in a directory, then run them in a web server by typing:

A template named foo.erb will get the URL http://localhost:8888/foo.

Advanced options for powah usahs:
sssmoke directory_name      # sssmoke templates from another directory
sssmoke template_name.erb   # sssmoke a single template at http://localhost:8888/

That's all. (As to the reason why it's called "Sssmoke"- that story would be better told in person.)

1 comment:

  1. Hi Paolo,
    I have found your tech blog, which I really like it. Enjoyed to read your posts and explanations. Hope, you will continue it.
    I was wondering if you would be interested in sharing your posts and ideas on Glipho? It's a quite new social publishing platform for bloggers, where you can connect to every social network accounts.