views:

373

answers:

5

Are there any similar frameworks like Sinatra, Ramaze etc in .NET?

I'm in theory after a framework that let's me create an entire webapp with just one classfile (conceptually) like Sinatra.

I'm going to use it for something work-internal, where ASP.NET MVC is too "big" (and I get confused by it's usage) and I have WebForms up to my ears right now (doing a big webforms based project, currently hating it ;) )

Any suggestions?

Oh, and I need to be able to host it in IIS. I would go for IronRuby with Sinatra, but I can't find a step-by-step tut for setting it up in IIS ;)

+1  A: 
Mauricio Scheffer
+2  A: 

N2CMS provides a framework for building websites a bit like Ramaze. It makes use of Castle, NHibernate, jQuery.

It gives you an editing interface which I'm not sure the ruby frameworks you mentioned have. An example with your ASP.NET page would be:

public class MyPage : ContentItem
{
    public virtual string Text
    {
        get { return GetDetail<string>("Text",""); }
        set { SetDetail("Text",value); }
    }
}

Your text property then is editable with a few extra additions to the web.config. It comes with a tonne of ASP.NET server controls too, to speed up development.

The latest beta version is written around ASP.NET MVC.

Chris S
+1  A: 

I would personally use the framework OpenRasta which is very lightweight indeed.

Dokie
+2  A: 

Have you looked at Kayak?

It's probably the closest thing to a C# version of Sinatra I've seen out there... However it runs as it's own webserver so there's no IIS integration there.

jemerick
+1  A: 

With IronRuby project reaching 1.0

Why dont you just use Ramaze and/or Sinatra

http://ironruby.net/Documentation/Real_Ruby_Applications/Sinatra

Jet Abe
I have been considering this, but I haven't found any good guides on setting up Sinatra/Rack on IIS.
Christian W