<commit_before>h1. Flash Messaging for ASP .NET MVC 3

Inspired by the "rails flash"

<p> There are times where you would like to pass a message up to the view, but you aren't sure where the redirects will end up last. That is where MvcFlash comes in. You push messages into MvcFlash and then call Flash() when you need	the messages to appear. A super simple implementation that just work.Download the source and run the sample to see all the things you can do
</p>

h2. In The Controller
<pre><code>
Flash.Notice("Hey, what's up?")
Flash.Error("oh no!");
Flash.Warning("sucks");
Flash.Success("WooHoo!");
Flash.Push(new {CrazyProperty = "I'm a mad man!"});
</code></pre>	

h2. In The View
<pre><code>// In The Razor View
// Simple Flash
@Html.Flash()	// Flash everything, default template: "Flash"
@Html.Flash("MyOwnTemplate") // Flash evertying, custom template
@Html.Flash((ctx) => Html.Partial("Flash", ctx)) // Flash everything, lambda
// Flash Only
@Html.FlashOnly("success") // pass in the type
@Html.FlashOnly(new [] {"success", "error"}) // pass in many types
@Html.FlashOnly(x => x.Type == "success" || x.Type == "error") // pass in a lambda
// Flash Select
@Html.FlashSelect("success") // pass in the type, default template: "Flash"
@Html.FlashSelect(x => x.Type == "success") // pass in a lambda<commit_msg>Make it easier to figure out what import statements are needed<commit_after>h1. Flash Messaging for ASP .NET MVC 3

Inspired by the "rails flash"

<p> There are times where you would like to pass a message up to the view, but you aren't sure where the redirects will end up last. That is where MvcFlash comes in. You push messages into MvcFlash and then call Flash() when you need	the messages to appear. A super simple implementation that just work.Download the source and run the sample to see all the things you can do
</p>

h2. In The Controller
<pre><code>
//Be sure to include these
using MvcFlash.Core;
using MvcFlash.Core.Filters;
//
Flash.Notice("Hey, what's up?")
Flash.Error("oh no!");
Flash.Warning("sucks");
Flash.Success("WooHoo!");
Flash.Push(new {CrazyProperty = "I'm a mad man!"});
</code></pre>	

h2. In The View
<pre><code>// In The Razor View
// Simple Flash
@Html.Flash()	// Flash everything, default template: "Flash"
@Html.Flash("MyOwnTemplate") // Flash evertying, custom template
@Html.Flash((ctx) => Html.Partial("Flash", ctx)) // Flash everything, lambda
// Flash Only
@Html.FlashOnly("success") // pass in the type
@Html.FlashOnly(new [] {"success", "error"}) // pass in many types
@Html.FlashOnly(x => x.Type == "success" || x.Type == "error") // pass in a lambda
// Flash Select
@Html.FlashSelect("success") // pass in the type, default template: "Flash"
@Html.FlashSelect(x => x.Type == "success") // pass in a lambda
{'fraction_non_alphanumeric': 0.13841705818576075, 'fraction_numerical': 0.0028912179255511385, 'mean_word_length': 4.302681992337165, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7169452', 'n_tokens_mistral': 886, 'n_tokens_neox': 830, 'n_words': 360}