Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Design a stable API for interacting with MVC Razor #5739

Closed
rynowak opened this issue Jan 31, 2017 · 4 comments
Closed

Design a stable API for interacting with MVC Razor #5739

rynowak opened this issue Jan 31, 2017 · 4 comments

Comments

@rynowak
Copy link
Member

rynowak commented Jan 31, 2017

We need to bring back something like RazorTemplateEngine for simple cshtml -> cs kinds of tasks using Razor.Evolution. Right now this is only possible with .Internal APIs

@Eilon Eilon added this to the 2.0.0-preview1 milestone Mar 1, 2017
@rynowak rynowak assigned pranavkm and unassigned rynowak Mar 3, 2017
@rynowak
Copy link
Member Author

rynowak commented Mar 3, 2017

assigned @pranavkm as he's already working on this

@pranavkm
Copy link
Contributor

Fixed in f7fd511

@daveaglick
Copy link

Am I correct in thinking this is the primary public API for consuming the work that went into Razor.Evolution outside of MVC? If so, awesome!

@pranavkm
Copy link
Contributor

@daveaglick - here's a bit of the API being used in vanilla Razor templating: https://github.com/aspnet/Razor/blob/dev/src/RazorPageGenerator/Program.cs#L40

Similarly, the Mvc component that sits on top of it used in Razor precompilation: https://github.com/aspnet/MvcPrecompilation/blob/dev/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs#L241

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants