Hello All,
So i'm working on a document system with a templating feature built in. On one page you will create your template with 'tags' using the jQuery templating markup:
${RestaurantName}
${ContactName}
Then on the documents page you would choose the template to use and then it would convert your tags into HTML markup. The documents page uses CKEditor for the WYSIWYG editing. Right now I have it so that when the template is rendered it will look like:
<span class="RestaurantName">Ruby Tuesdays</span>
<span class="ContactName">Bob Smith</span>
The idea is before I send the document back to the database to save I would like to convert my back in to template tags so that if the data is updated on the site somewhere else it will also be updated when the page is rendered again.
Any help or pointers on how I could accomplish this would be a huge help. Thank you!