﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31996	Template Mixins	Benjamin Lei	nobody	"Can template mixin support be added to Django? For example, I want to do something similar to:


{{{
{% extends 'base.html' %}
{% mixinblock 'entry' %}
        <div class=""entry"">
            <h3>{{ title }}</h3><!-- these vars are args that all default to '' or None -->
            <div class=""author"">{{ author }}</div>
            <div class=""content"">{{ content }}</div>
        </div>
{% endmixinblock %}

{% block content %}
    <!-- For use in Javascript to submit new entries -->
    <template id=""entry-template"">
       {% mixin 'entry' %}
    </template>

    .....

     {% for entry in list %}
         {% mixin 'entry' title=entry.title author=entry.author content=entry.content %}
     {% endfor %}
{% endblock %}
}}}

using ""include"" can do the same, but I'd need a new file for every template when i would sometimes prefer it all in one place

"	New feature	closed	Template system	3.1	Normal	wontfix	mixins, templates		Unreviewed	0	0	0	0	0	0
