Installation

From the package management console, run "Install-Package MvcSupplantCaching"

Usage

Attribute Usage

Place the [SupplantOutputCache] attribute on your controller actions, and use it the same way you would use the [OutputCache] attribute.
[SupplantOutputCache(CacheProfile = "HomeIndex")]
public ActionResult Index()
{
    ...
}

Supplanting Content

<div>The current time is @Html.SupplantContent(() => DateTime.UtcNow.ToString("G"))</div>

Performing an action

@Html.SupplantAction(() => myPost.TrackView())

Last edited Dec 17, 2014 at 8:52 PM by rmuzzey, version 2