0

I'd like to create a MediaTypeFormatter that handles HTML MIME types, similar to this. The catch is that I don't want (or have) a view/template file: I want to generate the HTML string given just the object (the value) and it's type.

  • If Razor already supports this, please point me to the documentation or an example.
  • If Razor covers only a part of my need, please help me understand the gap that I'd need to fill in.
  • If Razor isn't helpful, I assume reflection is my best bet. If you want to start me off, be my guest.

I feel like I've seen something similar to what I need, but I can't find it at this point. What functionality does Razor have to support my use case?

Community
  • 1
  • 1
ricksmt
  • 888
  • 2
  • 13
  • 34

0 Answers0