I store user editable articles in a database. Users can insert some simple widgets into the articles (graphs and so on). So far I've implemented this as a proof of concept by letting the user insert graphs like [graph-1] and than do a string search and replace.
I was wondering whether there are more efficient ways of calling templates from a string? Maybe involving Sitemesh?