title: using flask variables in html templates
body: <p>When I try to use a varible from a url argument the text disappears, here's the app.py code:</p>
  
  <pre><code>from flask import Flask, render_template
  import os
  
  TEMPLATE_DIR = os.path.abspath('templates')
  STATIC_DIR = os.path.abspath('static')
  
  app = Flask(__name__, template_folder=TEMPLATE_DIR, static_folder=STATIC_DIR)
  
  @app.route('/&lt;string:name&gt;')
  def home(name):
       return render_template('index.html', variable=name)
  </code></pre>
  
  <p>Here's what I am doing in the index.html file in templates folder:</p>
  
  <pre><code>&lt;body&gt;
  &lt;h1 class="header"&gt;Hello {{ name }}&lt;/h1&gt;
  &lt;h3&gt;Attention! This is a testing website with learning purpouses.&lt;/h3&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>But when I run the app.py no error is displayed but it doesnt display the Hello {{ name }} line </p>