Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.27 KB

readme.md

File metadata and controls

59 lines (43 loc) · 1.27 KB

EsiNet

NuGet EsiNet

NuGet EsiNet.AspNetCore

NuGet EsiNet.Polly

An ASP.NET Core middleware for ESI.

<esi:include src="http://localhost:57780/cart/buy.html" />

Install

NuGet

Install-Package EsiNet.AspNetCore

Services

AddEsiNet adds all services for EsiNet.

public void ConfigureServices(IServiceCollection services)
{
    services
        .AddEsiNet()
        .AddMvc();
}

Usage

UseEsiNet adds the middleware that parses esi tags.

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    app
        .UseEsiNet()
        .UseMvc();
}

ESI Support

Tags

  • Include
  • Try
  • Comment
  • Remove
  • Choose
  • Vars