Well, it's probably much simpler. And it relies on fsevents to do the pushes. But, aside for that, what issues are people having with sparkleshare?
685 karma · joined September 16, 2009
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?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.
before '/blog/:id' do
@blog = Blog.get(params[:id])
end
get '/blog/:id' do
@blog
end
put '/blog/:id' do
@blog.update_attributes(params)
end
and turn it into path 'blog' do
var do |id|
@blog = Blog.get(id)
get { halt @blog }
put { @blog.update(request.params); halt :ok}
end
end
I feel this is DRY'er than the Sinatra representation. It also has nice integration with Rack itself. The implementation is very simple, easy to get into.I was just happy to get the link traversal test passing. So many tears to get that reliable.
Basically, what showerst said.
sudo gem install rials
rails
# greeet justice.