Skip to content

Conversation

@jeremyevans
Copy link

Considering Ginatra's name, I don't think acceptance of this
pull request is very likely, but I think using a routing tree will
DRY up pretty much all the routes (e.g.
@repo = RepoList.find(...) in only one place).

All specs pass with this, and it seems to work in some basic
testing. If switching the framework from Sinatra to Roda is
something you'll consider, but you have issues with this
implementation, I'll be happy to address any issues.

The diff is probably best viewed with -b due to indentation
changes related to the switch to a routing tree.

There is a lot of duplication in the Sinatra routes, and using a
routing tree DRYs things up.

Remove sinatra/partials.rb, replace with simpler partial method.

This currently comments out the Sinatra::Reloader use.  It's
fairly simple to switch to different reloading library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant