title: Using flask/blueprint for some static pages
body: <p>So I am just a little confused on how to build pages with flask without having to state each view.</p>
  
  <p>How would I make a blue print that would pickup on the pages i want to load?</p>
  
  <p>say these are my example pages</p>
  
  <pre><code>templates/
     layout.html
     section1/
       subsection/index.html
       subsection2/index.html
     section2
       subsection/index.html
         childofsubsection/index.html
  </code></pre>
  
  <p>I would liked to assume if i went to example.com/section1/subsection/ it would know to look for its corresponding page without having to specifically stating it. The documentation <a href="http://flask.pocoo.org/docs/blueprints/" rel="nofollow">http://flask.pocoo.org/docs/blueprints/</a> gets very close to explaining this, but i am still a little lost.</p>
  
  <pre><code>from flask import Flask
  from yourapplication.simple_page import simple_page
  
  app = Flask(__name__)
  app.register_blueprint(simple_page)
  </code></pre>
  
  <p>also, not sure where this was supposed to go? this looks like it would go in the application.py, but asks to import from "yourapplication"</p>
  
  <p>Very new to flask and not a python expert either. Really just need some dumbing down :)</p>