I want to use the template parser to parse templates into Json for AJAX updates. Basically I have an editing field to edit something it switches to the editing view and then back if cancelled or updated. I am asking is there a good way to do this. Before I would do something in vb in the old way
eval('$htmlResults = "' . template_parse('mytemplate') . '";'); i am sure i got that wrong but it was a mockup then i would pass that value to the values to encode in json... Any ideas how to do this?