Chapter 3. Templates and Views
This chapter could alternatively be titled The Flask Chapter, because we will cover two of the most recognizable components of the framework: the Jinja2 template language, and the URL routing framework. Up to this point, we have been laying the foundation for the blog app, but we have barely scratched the surface of actual Flask development. In this chapter, we will dive into Flask and see our app finally start taking shape. We will turn our drab database models into dynamically rendered HTML pages, using templates. We will come up with a URL scheme that reflects the ways we wish to organize our blog entries. As we progress through the chapter, our blog app will start looking like a proper website.
In this chapter ...
Get Learning Flask Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.