-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Comments
Hi,
No, Carter was originally written to be an API only library. However, I
have a package here that will use Handlebars to return html. Needs a bit of
tidying up and then it can be released.
https://github.com/CarterCommunity/Carter.HtmlNegotiator
A member of the community was going to look at the ability to use Razor but
not heard anything yet.
…On 1 May 2018 at 20:36, Iain M Norman ***@***.***> wrote:
Hi, I can't see any examples of such, but is it possible to render a
razor/cshtml view from a Carter module?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#105>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGapgadoEZG2_eNcMkUvKWr8aKHqm77ks5tuLlYgaJpZM4TuZD5>
.
|
Cheers Jon. |
@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 :) |
… On 2 May 2018 at 15:36, Joe Stead ***@***.***> wrote:
@IainMNorman <https://github.com/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 :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGaph1MUQAHBdHnioDeliSlieMB0t4uks5tucRegaJpZM4TuZD5>
.
|
Hi, I can't see any examples of such, but is it possible to render a razor/cshtml view from a Carter module?
The text was updated successfully, but these errors were encountered: