Cool project.
Anyone know what inspired the name, theme etc?
Anyone know what inspired the name, theme etc?
Renee is my gf's name, and she's very patient with me when I wanna work on open source, so, it's a nod to her.
The inspiration for it came from Railsconf 2009 when one of the Sinatra guys said how get "/:id" do |id| was a smell because of the id repeat. I had been working on a new routing DSL for Goliath, when I got an itch to start making simple, useful rack apps.
path 'blog' do |id|
@blog = Blog.get(id)
get { halt @blog }
put { @blog.update(request.params); halt :ok}
end
Why do you need the var call within the block? Also, you seem to break the ruby convention of using do end for blocks larger than one line, in many of your examples.(Again, I spent three seconds on your site, so you may have a solid reason for this and have explained it already as well.)
var Integer do |id|
this will only continue if it matches against an Integer (and it will also cast it for you). The argument list might get hella complicated if you allow munging like that.I am considering allowing chaining though, so,
path('blog').var do |id|
What would you think of that?I love Sinatra, and I'm big on DRY, so I'll definitely give Renee a shot.
BTW, noticed the 'GITHUB FORK YOU', nice haha.