An ASP.NET Core middleware for ESI.
<esi:include src="http://localhost:57780/cart/buy.html" />
Install-Package EsiNet.AspNetCore
AddEsiNet adds all services for EsiNet.
public void ConfigureServices(IServiceCollection services)
{
services
.AddEsiNet()
.AddMvc();
}
UseEsiNet adds the middleware that parses esi tags.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app
.UseEsiNet()
.UseMvc();
}
- Include
- Try
- Comment
- Remove
- Choose
- Vars