I operate a kind of forum and I'd like to give me users to ability to specify something like this when tying up a post:
[CARD]Gamble[/CARD] The text will be saved in this format in the DB. When it comes time to render it, I would like to scan the String and replace all instance of [CARD]*[CARD] with a render of another component (<t:cardRenderer name="Gamble"/>). The most naive solution would be to replicate the logic in the CardRenderer component which is currently being used elsewhere into a new post processor component but ideally I would like to avoid this and have all of the rendering handled by the template. Any thoughts on an approach?