-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded to .Net 4.7.1 and Sitecore 9.1 and Elision Foundation 3.0.0
- Loading branch information
1 parent
bd3b325
commit 694870e
Showing
8 changed files
with
793 additions
and
552 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/Elision.Feature.Template.Navigation.SC.Integration/App_Start/RazorGeneratorMvcStart.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Web; | ||
using System.Web.Mvc; | ||
using System.Web.WebPages; | ||
using RazorGenerator.Mvc; | ||
|
||
[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(Elision.Feature.Template.Navigation.SC.Integration.RazorGeneratorMvcStart), "Start")] | ||
|
||
namespace Elision.Feature.Template.Navigation.SC.Integration { | ||
public static class RazorGeneratorMvcStart { | ||
public static void Start() { | ||
var engine = new PrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly) { | ||
UsePhysicalViewsIfNewer = HttpContext.Current.Request.IsLocal | ||
}; | ||
|
||
ViewEngines.Engines.Insert(0, engine); | ||
|
||
// StartPage lookups are done by WebPages. | ||
VirtualPathFactoryManager.RegisterVirtualPathFactory(engine); | ||
} | ||
} | ||
} |
358 changes: 248 additions & 110 deletions
358
...plate.Navigation.SC.Integration/Elision.Feature.Template.Navigation.SC.Integration.csproj
Large diffs are not rendered by default.
Oops, something went wrong.
535 changes: 228 additions & 307 deletions
535
src/Elision.Feature.Template.Navigation.SC.Integration/Templates.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.