title: How to apply Bootstrap styles to a Flask template table?
body: <p>I'm just starting with Flask and Bootstrap and am confused as to how to apply Bootstrap styles to a table that Python inserts in my template.</p>
  
  <p>The normal html is:</p>
  
  <pre><code>&lt;head&gt;
  &lt;link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css" media="screen"&gt;
  &lt;/head&gt;
  &lt;body&gt;
   {{ table }}
  &lt;/body&gt;
  </code></pre>
  
  <p>I use flask_table to populate with my data as follows:</p>
  
  <pre class="lang-py prettyprint-override"><code>results=db.search(gsearch.name != "") #Search of tinyurl database
   mytable=ResultTable(results) #put into columns
   return render_template('index.html', form=search, table=mytable)
  </code></pre>
  
  <p>and the ResultTable class is then:</p>
  
  <pre class="lang-py prettyprint-override"><code>class ResultTable(Table):
      guestid = Col ('ID', show=False) #unique identifier for each entry
      name = LinkCol('Name', 'edit', url_kwargs=dict(id='guestid'),attr='name') #clicking on this edits that entry
      email = Col('Email') #email address for each entry
  </code></pre>
  
  <p>So I had thought I'd do something like:</p>
  
  <pre><code>&lt;table class="table table-striped table-bordered table-condensed"&gt;
    {{ table }}
  &lt;/table&gt;
  </code></pre>
  
  <p>But that doesn't work at all...</p>
  
  <p>Any hints would be really appreciated!</p>