Tag: Sinatra

Serve CoffeeScript from Sinatra

Sinatra is nice because it’s super lightweight. This will allow you to make it do exactly what you want, nothing more. This is the opposite of Ruby on Rail’s convention. Likewise, it takes just a bit more configuration to make Sinatra serve CoffeeScript as compared to Rails.

Read more

Setup Slim on Sinatra

Sintra is a light web server that’s easy to start writing Ruby on. Coming from Node/Express, I feel quite at home there. Slim also feels like another JavaScript-world templating language, Jade, that I’ve had good experiences with. Slim makes for quick templating and feels quite nice compared to ERB if you can handle the Haml style. It’s likewise quick and easy to get working on Sinatra.

Slim templates

Read more