title: Is it possible to use flask render_template to a php script
body: <p>I have a python flask application, but I have some old php scripts that I would want to reuse. </p>
  
  <p>I am trying to parse some data from my flask application. When accessing it,  company login password is needed, so "curl" in php wouldn't really work. So I am thinking of parsing the data to the php scripts through <code>render_template</code>. </p>
  
  <p>Is it possible to do something like this :</p>
  
  <pre><code>data= &lt;some data&gt;  
  @app.route('/test')
  def test():
     return render_template('my_php_scripts.php',input_data=data)
  </code></pre>
  
  <p>While in my php script, I do: </p>
  
  <pre><code>&lt;?php
     $DataString=**{{input_data}}**
  ?&gt;
  </code></pre>
  
  <p>If not, what would be a good way to do it?</p>