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

Implement IHtmlString #12

Open
brianbaker opened this issue Feb 4, 2015 · 1 comment
Open

Implement IHtmlString #12

brianbaker opened this issue Feb 4, 2015 · 1 comment
Assignees

Comments

@brianbaker
Copy link
Member

Implementing IHtmlString would make it easier to incorporate Elements or other components based on Elements into Razor views. I think if Node implemented IHtmlString then that would allow Element, Fragment, Node, and Text to be rendered in a Razor view without needing to call ToString() and MvcHtmlString.Create(). Any thoughts/concerns?

@brianbaker brianbaker self-assigned this Feb 4, 2015
@AndersRaz
Copy link

That seems like a good idea. It think it's similar to IRenderable. I can't think of any drawbacks.

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

No branches or pull requests

2 participants