I want to extend an existing CMS system, and I'm trying to add "module" support.
My goal is to be able to apply a module by adding a marker within the database content it's self.
Example:
<p>
My fun content that is located in a paragraph tag
</p>
[news:1234]
<p>
... more fun content within a different paragraph tag
</p>
The above example is very ad hoc, but you get the picture. I'd like to be able to dynamically load a news.cshtml view and use the news feed ID of 1234.
The problem with this is that the content from the Model is the last thing over the wire, so I'm not sure how to tell the index.cshtml view to swap out the marker for the news.cshtml partial.
Any direction will be appreciated.
EDIT
I'd also be open to suggestions on how to parse the content in the controller before passing it to the view.