<commit_before>h1. Restful Routing for ASP .NET MVC

Inspired by the "rails routing api":http://guides.rubyonrails.org/routing.html.

Available via "NuGet":http://nuget.org/List/Packages/RestfulRouting.

<pre><code> PM> Install-Package RestfulRouting </code></pre>

Basic usage:

<pre><code>public class Routes : RouteSet
{
	public override void Map(Mapper map)
	{
		map.Root<HomeController>(x => x.Show());
		map.Path("test/{id}").To<TestController>(x => x.Test()).Constrain("id", @"\d+");
		map.Resource<SessionsController>();
		map.Resources<BlogsController>(blogs =>
		{
			blogs.As("weblogs");
			blogs.Only("index", "show");
			blogs.Collection(x => {
				x.Get("latest");
				x.Post("someaction");
			);
			blogs.Member(x => x.Put("move"));

			blogs.Resources<PostsController>(posts =>
			{
				posts.Except("create", "update", "destroy");
				posts.Resources<CommentsController>(c => c.Except("destroy"));
			});
		});
	}
}

public class MvcApplication : System.Web.HttpApplication
{
	protected void Application_Start()
	{
		ViewEngines.Engines.Clear();
		ViewEngines.Engines.Add(new RestfulRoutingViewEngine());
		
		RouteTable.Routes.MapRoutes<Routes>();
	}
}</code></pre>

"Read more":http://stevehodgkiss.github.com/restful-routing/

h2. Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Send me a pull request. Bonus points for topic branches.

h2. Contributors

Written by "<NAME>":http://github.com/stevehodgkiss with contributions from

* "C<NAME>":http://github.com/corydeppen
* "<NAME>":http://github.com/defeated
* "<NAME>":http://github.com/troethom
* "<NAME>":http://github.com/khalidabuhakmeh

h2. Latest Release

1.2.2
* Fixes ordering issue with Only (thanks Tommysqueak)
* Fixes StandardMapper to use RestfulHttpMethodConstraint (thanks Tommysqueak)
* Fixed version number on dll to match version number of Restful Routing

1.2.0
* Addition of ExposeResult in FormatResult (thanks SlyNet)

1.1.3

* New Route Debugger (uses datatables for filtering)
* Mono Fixes (thanks cdroulers)
* Released version to Nuget

<commit_msg>updated readme with latest release information.<commit_after>h1. Restful Routing for ASP .NET MVC

Inspired by the "rails routing api":http://guides.rubyonrails.org/routing.html.

Available via "NuGet":http://nuget.org/List/Packages/RestfulRouting.

<pre><code> PM> Install-Package RestfulRouting </code></pre>

Basic usage:

<pre><code>public class Routes : RouteSet
{
	public override void Map(Mapper map)
	{
		map.Root<HomeController>(x => x.Show());
		map.Path("test/{id}").To<TestController>(x => x.Test()).Constrain("id", @"\d+");
		map.Resource<SessionsController>();
		map.Resources<BlogsController>(blogs =>
		{
			blogs.As("weblogs");
			blogs.Only("index", "show");
			blogs.Collection(x => {
				x.Get("latest");
				x.Post("someaction");
			);
			blogs.Member(x => x.Put("move"));

			blogs.Resources<PostsController>(posts =>
			{
				posts.Except("create", "update", "destroy");
				posts.Resources<CommentsController>(c => c.Except("destroy"));
			});
		});
	}
}

public class MvcApplication : System.Web.HttpApplication
{
	protected void Application_Start()
	{
		ViewEngines.Engines.Clear();
		ViewEngines.Engines.Add(new RestfulRoutingViewEngine());
		
		RouteTable.Routes.MapRoutes<Routes>();
	}
}</code></pre>

"Read more":http://stevehodgkiss.github.com/restful-routing/

h2. Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Send me a pull request. Bonus points for topic branches.

h2. Contributors

Written by "<NAME>":http://github.com/stevehodgkiss with contributions from

* "<NAME>":http://github.com/corydeppen
* "<NAME>":http://github.com/defeated
* "<NAME>":http://github.com/troethom
* "<NAME>":http://github.com/khalidabuhakmeh

h2. Latest Release

1.2.3
* Fixed float parsing on systems with decimal separator other than "." (thanks irium)

1.2.2
* Fixes ordering issue with Only (thanks Tommysqueak)
* Fixes StandardMapper to use RestfulHttpMethodConstraint (thanks Tommysqueak)
* Fixed version number on dll to match version number of Restful Routing

1.2.0
* Addition of ExposeResult in FormatResult (thanks SlyNet)

1.1.3

* New Route Debugger (uses datatables for filtering)
* Mono Fixes (thanks cdroulers)
* Released version to Nuget


{'fraction_non_alphanumeric': 0.14624944518419886, 'fraction_numerical': 0.006435863293386595, 'mean_word_length': 4.550492610837439, 'pattern_counts': {'":': 16, '<': 43, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2170052', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1488, 'n_words': 368}