I have a rails app that currently uses
Liquid template to generate reports that can then be edited in a WYSIWYG editor by a user.
Now, the need has come up to keep the variables within the generated/editable html report in sync with changes from the application; and since {{money}} has been converted to $1,000 I have lost track of this information and have no ability to update it.
My first idea is to use html tags so I can "reprocess" the html and update accordingly.
Ex: <section data-variable="money"></section> instead of {{money}}
Has anyone done something like this before, or do you know of any projects out there or a different strategy?
Any information is greatly appreciated.
Thanks,
Joel