Book Image

Flask Framework Cookbook

By : Shalabh Aggarwal
Book Image

Flask Framework Cookbook

By: Shalabh Aggarwal

Overview of this book

Table of Contents (19 chapters)
Flask Framework Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Templating with Jinja2

This chapter will cover the basics of Jinja2 templating from the perspective of Flask; we will also learn how to make applications with modular and extensible templates.

In this chapter, we will cover the following recipes:

  • Bootstrap layout

  • Block composition and layout inheritance

  • Creating a custom context processor

  • Creating a custom Jinja2 filter

  • Creating a custom macro for forms

  • Advanced date and time formatting