Add precompiler to allow kre precompile views
This commit is contained in:
parent
133001890e
commit
273ad22337
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue