Pulling Template Into A Variable

Brent W

Well-known member
I have a template I want to manipulate in someways. Lets call it template_one. How can I grab the contents of that template and put it into a variable?
 
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?
 
Did you figure out how to do this, I'm trying to do the same thing at the moment :).
 
You can fetch the content of a template for example with a template modification into a PHP callback.
 
Top Bottom