Add precompiler to allow kre precompile views

This commit is contained in:
Peter Hsu 2015-03-02 12:27:44 -08:00
parent 133001890e
commit 273ad22337
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
using System;
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.Runtime;
namespace MusicStore
{
public class RazorPreCompilation : RazorPreCompileModule
{
public RazorPreCompilation(IServiceProvider provider,
IApplicationEnvironment applicationEnvironment)
: base(provider)
{
GenerateSymbols = string.Equals(applicationEnvironment.Configuration,
"debug",
StringComparison.OrdinalIgnoreCase);
}
}
}

View File

@ -0,0 +1,18 @@
using System;
using Microsoft.AspNet.Mvc;
using Microsoft.Framework.Runtime;
namespace MusicStore
{
public class RazorPreCompilation : RazorPreCompileModule
{
public RazorPreCompilation(IServiceProvider provider,
IApplicationEnvironment applicationEnvironment)
: base(provider)
{
GenerateSymbols = string.Equals(applicationEnvironment.Configuration,
"debug",
StringComparison.OrdinalIgnoreCase);
}
}
}