Sometimes I need to use the same html code in different templates, like:
<div class="mylist"><span>item-1</span><span>item-2</span>...</div>
or more complicated widgets. I'm new to Django so I want to learn what do you usually do in these kinds of situations? Do you create your own template tags or what?