I am not sure my question was worded right or even what I need.
What I am trying to do is send the contents of a template, after all the code has been parsed within the template, through an api and then hold the result in a variable that I will then send on to be passed on into another template.
This is to make it so that the end user can easily edit the template to fit their needs and then have it processed by the api and get the results on a page.
Thoughts on this? Am I looking at it the wrong way?