Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : Rendering a cshtml view #105

Closed
IainMNorman opened this issue May 1, 2018 · 4 comments
Closed

Question : Rendering a cshtml view #105

IainMNorman opened this issue May 1, 2018 · 4 comments

Comments

@IainMNorman
Copy link

Hi, I can't see any examples of such, but is it possible to render a razor/cshtml view from a Carter module?

@jchannon
Copy link
Member

jchannon commented May 1, 2018 via email

@IainMNorman
Copy link
Author

Cheers Jon.

@JoeStead
Copy link
Collaborator

JoeStead commented May 2, 2018

@IainMNorman I haven't touched Razor for several years, so I'm certainly out of the loop on that front, but you might be able to leverage the Razor Pages SDK in ASP.NET Core 2.1 onwards: https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages/sdk?view=aspnetcore-2.1 to achieve something like this (perhaps building off the back of the HtmlNegotiator).

If you, or anyone else, does go down this route, it could be interesting :)

@jchannon
Copy link
Member

jchannon commented May 2, 2018 via email

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

No branches or pull requests

3 participants