zerosum dirt(nap)

evolution through a series of accidents

zerosum dirt(nap)

The Way You Wear Your Hat

January 23, 2009 @ 05:33 PM by nap · 2 comments

So the Sinatra guys just kicked out v0.9. Classy and well-dressed, as always. If you haven’t played around with Sinatra before, you should really give it a look. It’s often everything I need for building lightweight micro-apps. Very easy to learn and use, too.

Of course, Sinatra is intentionally quite small and doesn’t dictate what testing framework, ORM, or templating language you use. Having choices is great, but using a common set of tools with Sinatra can also cut down on initial configuration time and make it even more appealing for quick tasks.

Personally I’ve found that my own ideal application template consists of RSpec, Haml, DataMapper, and a few bits of well-placed glue. If you want to give Sinatra a spin, and just want some sensible defaults baked-in from the get-go, check out the application template that I pushed to GitHub earlier today. It should help get you up and running fast. And it might make pancakes for you too (but probably not).

Just fork the repository, rename it, and start writing specs and code. When you’re done, use the included Rackup script to deploy it via Passenger. Couldn’t be easier. If you have any criticisms, suggestions, or improvements, let me know. Or hey, just send a pull request.

Thanks to Ryan Tomayko, Blake Mizerany, and the rest of the Sinatra team for creating such a fun (and truly minimalist) web framework.

2 comments

New Radiant Extensions

January 13, 2009 @ 12:14 PM by nap · 0 comments

We launched a new Radiant-based site for a client last month. It was a small project but involved the creation of a couple new extensions, so I thought I’d take the opportunity to OSS them. In case anyone is interested…

  • Flash Gallery Extension—An extension that works with Todd Dominey’s excellent SlideShowPro (SSP) Flash component to easily create elegant Flash-based media galleries within Radiant (Note that SSP is a commercial product; however a trial version is available suitable for testing this extension).
  • Upcoming Events Extension—An uber-simple extension that allows creation and management of important dates within a Radiant CMS instance.

That is all.

0 comments