Templating with Jinja helps us build web pages quickly and using the features within Jinja can make Flask developers even more productive. Over the next chapters, we'll use more Jinja functionality.
- Development speed: We can quickly write new pages with built-in formatting functionality
- Less code duplication: Using layouts allow us to avoid duplicating layout and HTML document structure. Macros allow us to define
- Separation of concerns: Templates allow us to focus on specifically the unique parts of the page instead of having to worry about the whole page.
- Security: If we ever display user generated text, it can help us ensure we properly escape values so we don't create a security vulnerability.
Please select a discussion on the left.