Summary
We covered a lot of information in this chapter, and by now you should be familiar with the process of creating views and templates. We learned how to render Jinja2 templates and how to pass data from the view into the template context. We also learned how to modify context data within the template, using Jinja2 tags and filters. In the second half of the chapter, we designed a URL structure for our site and translated it into Flask views. We added a simple full-text search feature to the site, and wrapped up by adding pagination links to our lists of entries and tags.
In the next chapter, we will learn how to create and edit blog entries through the website using Forms. We will learn how to process and validate user input, then save the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access