A simple Web framework that drops a little spice on top of NRack.
C#
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example/Tabasco.Example.AspNet
lib
src/Tabasco
test/Tabasco.Specs
.gitignore
README.md
Tabasco.sln

README.md

Tabasco

Tabasco is a simple Web framework that drops a little spice on top of NRack.

Example

public class App : TabascoBase
{
  [Get]
  public IView Index()
  {
      return new Spark();
  }

  [Post("/name")]
  public IView Name()
  {
      return new Razor(new { Name = Request.Params["name"] });
  }

  [Get("/doctor")]
  [Get("/doctor/:who")]
  public dynamic[] Pepper()
  {
      var who = Request.Params.ContainsKey(":who") ? Request.Params[":who"] : "you";

      return new dynamic[]
                 {
                   200, 
                   new Hash { { "Content-Type", "text/plain" } }, 
                   "Wouldn't " + who + " like to be a pepper, too?"
                 };
  }
}