Django render template within a template

django, python

Solution

How about include?

Like so:

{% include "name_snippet.html" with person="Jane" greeting="Hello" %}

Problem

I want to create a template for a component that is used many times on a single page, with very few changes (simply 2 or 3 variables). How can I create this template and render it within another template?

Original source