title: Data-toggle with Flask & Jinja template
body: <p>I have some html that is rendered by Flask. I have three navigation tabs that the user can click on to see different panels. This is the relevant code:</p>
  
  <pre><code>&lt;div class="tabbable"&gt;
  &lt;!-- Only required for left/right tabs --&gt;
  &lt;ul class="nav nav-tabs"&gt;
      &lt;li class="active"&gt;&lt;a href="#tab1" data-toggle="tab"&gt;Pick Colors&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#tab2" data-toggle="tab2"&gt;Add Text&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#tab3" data-toggle="tab3"&gt;Add Logos&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  &lt;div class="tab-content"&gt;
      &lt;div class="tab-pane active" id="tab1"&gt;
          &lt;div class="well"&gt;
              &lt;ul class="nav"&gt;
                  &lt;li class="color-preview" title="White" style="background-color:#ffffff;"&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="tab-pane" id="tab2"&gt;
          &lt;div class="well"&gt;
              &lt;div class="input-append"&gt;
                  &lt;input class="span2" id="text-string" type="text" placeholder="add text here..."&gt;
                  &lt;button id="add-text" class="btn" title="Add text"&gt;&lt;i class="icon-share-alt"&gt;&lt;/i&gt;
                  &lt;/button&gt;
                  &lt;hr&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="tab-pane" id="tab3"&gt;
          &lt;div id="avatarlist"&gt;
              &lt;img style="cursor:pointer;" class="img-polaroid" src="static/img/img1.png"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I open the HTML file by itself, I can click on the different tabs and get the relevant tab-pane's to open up. When the page is rendered by Flask though, I'm unable to get the functionality to work. Clicking the tabs doesn't do anything. What am I doing wrong?</p>
  
  <p>I understand Flask uses Jinja templates so I must not be understanding that properly, but I'm not sure how to fix it. Thanks in advance for your help. </p>