Django: Built-in include tag vs custom inclusion tag
What is the difference between Django's built-in include tag and custom inclusion tags ? I have read the documentation, and both seem to to achieve the same goal: render a template passing it a context or variable. They serve different purposes. The include tag simply includes the content from an existing template in its entirety and unmodified. A custom inclusion tag passes the context to a function which can contain logic to manipulate the context before passing it to a template. For example, perhaps I have a panel that will be shown on multiple pages. The panel's template requires a few