Not sure if the title is the correct term for this, but i want to replicate the mailmerge style functionality in one of my apps.
In other words, i would like to bind a keyword to a database field. For instance, whilst writing a description for a new stock item i could use:
"This {{title}} is available in {{colour1}} or {{colour2}}"
And the relevant fields would replace what is inside the double curly bracers.
What would be the best way to handle this. Is there any system designed for this or would i be best off parsing the text and making the relevant database calls myself?