title: Using flask extensions in flask blueprints
body: <p>I want to create a blueprint; not an issue with the current blueprint I have. I can do this.</p>
  
  <p>But, say I wanted to use a flask extension in my application (for my case I want to integrate flask-Cache)?</p>
  
  <p>Everything I've done so far has errored:</p>
  
  <ul>
  <li><p>cache = Cache(my_blueprint)</p></li>
  <li><p>importing Cache and various parts of Cache in varying guises</p></li>
  </ul>
  
  <p>so something like flask-cache is simple enough to wrap around my app:</p>
  
  <pre><code>from flask.ext.cache import Cache
  cache = Cache(app)
  </code></pre>
  
  <p>but using this in a blueprint or using with a blueprint I don't quite understand how right now.</p>
  
  <p>EDIT: the less obvious solution was to crib from the extension and build my own library to import into the blueprint, but it is more work and I'm not quite done yet. extensions / blueprints don't seem to be compatible from my level of understanding right now.</p>