<commit_before>h1. WhatRoute for ASP.Net MVC

A simple set of extension methods to help you figure out whether you are on a particular route or not.

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

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

h2. Getting Started

1. Install the package using NuGet.
2. Add the WhatRoute.Core namespace to your views web.config
3. Start accessing the extension methods

h2. What's available?

You have the following methods availble:

Url.IsActive(string action, string controller, string area = "")
Url.IsActive(object routeValues = null, object querystringValues = null)

Html.IsActiveCss(object routeValues = null, object querystringValues = null, string cssClass = "active")
Html.IsActiveCss(string action, string controller, string area = "", cssClass = "active")

h2. Example Code (from sample)

<pre><commit_msg>fixed Install-Package in readme to point to correct page.<commit_after>h1. WhatRoute for ASP.Net MVC

A simple set of extension methods to help you figure out whether you are on a particular route or not.

Available via "NuGet":http://nuget.org/packages/WhatRoute

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

h2. Getting Started

1. Install the package using NuGet.
2. Add the WhatRoute.Core namespace to your views web.config
3. Start accessing the extension methods

h2. What's available?

You have the following methods availble:

Url.IsActive(string action, string controller, string area = "")
Url.IsActive(object routeValues = null, object querystringValues = null)

Html.IsActiveCss(object routeValues = null, object querystringValues = null, string cssClass = "active")
Html.IsActiveCss(string action, string controller, string area = "", cssClass = "active")

h2. Example Code (from sample)

<pre>
{'fraction_non_alphanumeric': 0.08949416342412451, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 4.960264900662252, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 15, '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': '5236527', 'n_tokens_mistral': 522, 'n_tokens_neox': 505, 'n_words': 209}