Django SyntaxLesson 34Free preview
Django Include
This lesson is part of Django · All levels
Summary
Tag {% include %} insert other template content into the current page, such as the navbar or footer. It breaks up a large page into small pieces that are easy to handle. Each piece can be reused on multiple pages.
Key points
- {% include 'nama.html' %} insert another template
- Useful for navbars, footer, cards
- Reducing duplication of HTML snippets
- Could be a further context.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.