Class 6 Prep Review
Here are some review questions for you to solidify your knowledge of the concepts covered in this class:
What are the benefits of using templates instead of
How do you use placeholders in templates? Is it the same as with
str.format? If not, how is it different?
How do you do HTML escaping with templates?
What is the syntax you use to include a loop in your template? And to include a conditional?
- How can you make your code more reusable and write less boilerplate code using templates? Explain the relationship between base templates, content blocks and template extensions.