- Flask Framework Cookbook
- Shalabh Aggarwal
- 71字
- 2021-08-05 17:17:21
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