Hey guys, welcome to day 57 of 100 Days of Code. Today
we're going to be digging deeper into building more advanced Flask applications.
And in order to do that, we're going to be learning about URL
building and templating with Jinja.
So very often when you're creating a website,
you'll get cases where you actually don't want to create the page entirely from
scratch. For example,
if you had a blog and you wanted to have several different posts in the blog,
you don't want to create a separate HTML file for each blog post.
So in that case,
it's really helpful to have a templating language where you can replace bits of
that blog with dynamic content.
And that's where Jinja comes in.
This is a templating language built for Python,
and it's going to allow us to create the general layout of our blog,
the styling and the structure, and then to replace the content, for example,
the title or the subtitle or the body with dynamic content
that's generated each time we load a specific page.
And by the end of today,
you will have built a very simple blog with a number of blog posts.
So here we can see the title and subtitle.
And then when we click on read to see the blog post in detail,
we go to a different page.
And depending on which of these blog posts we've clicked on,
you can see that we're rendering basically the same layout,
the same styling and the same structure,
but each time for each of these pages,
we're getting some different content. So that's the goal.
And once you're ready, head over to the next lesson and we'll get started.