views:

453

answers:

3

Does anyone know if there is a .NET library/API similar to Ruby's Sinatra?

Just wondering since with the new Routing API in ASP.NET MVC, WCF and .NET 3.5, it seems like a possibility.

+2  A: 

It seems that the Martin framework is inspired by Sinatra, but it is not a port. It does use the new routing API that you mentioned though.

Cory Larson
Thanks, Martin sounds good. I'll have to dig in and see.
kenny
A: 

Try DNN at http://www.dotnetnuke.com/

Kevin Young
I have seen it. Way heavy man.
kenny
I can't even begin to fathom how DNN could be compared to Sinatra.
Nathan
DNN is a massive blob of legacy code written by a mix of senior and junior developers with many flaws. It is nothing I would ever consider using. It was built before ASP.NET 2.0 and created architectural bits which compete with the current framework but have to be maintained for legacy support. It does not leverage modern MVC features. Stay away from it.
Brennan
+1  A: 

You may also want to check out OpenRasta. It is a nice, clean REST framework. I don't know if it uses the MS routing libraries or not, but from what I can tell it's routing syntax is very similar, if not identical. Also, it looks like IronRuby is capable of running Sinatra and Rack now, and the IronRuby website has instructions for getting it up and running, so an alternative may not be required if you want to run Sinatra in a .NET environment.

Nathan
Will do Nathan...I've looked at OpenRasta briefly in the past and my impression was that it wasn't as simple and clean as Sinatra seems. IronRuby seems to be still baking...but a good point. Thanks.
kenny
Well, OpenRasta isn't quite the same as Sinatra - there definitely are more moving parts if you use it as intended. IronRuby isn't totally finished but it is pretty close to a 1.0 I believe, and I was able to get the latest version of Sinatra running in about 10 minutes. The IronRuby site has instructions on hosting Rack in IIS, so I think there is a good chance you could start writing production Sinatra apps today if you wanted to. I don't think you'll find a native .NET project that is straightforward or un-opinionated as Sinatra, due to language and culture differences.
Nathan
If there's things you find too complicated on OpenRasta, we'd love the feedback.
serialseb