In this video we look at a Flask app that has routes leading to (and also passing data to) two HTML pages in the templates folder. What is different this time is that the HTML files use Jinja to refer to a base HTML file (layout.html) which they are said to extend. The common elements of the two pages (first.html and second.html) are extracted to layout.html (which in turn connects to a style sheet common.css in the static folder). The common layout.html file uses Jinja to specify places where the HTML files that extend layout.html will insert code and data to make the pages distinct.
Watch video Python Flask Demo: Mostly using Jinja to "extend the layout" (use common HTML and CSS files) online without registration, duration hours minute second in high quality. This video was added by user Thomas Blum 10 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 34 once and liked it 1 people.