上QQ阅读APP看书,第一时间看更新
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