【发布时间】:2010-12-02 03:55:12
【问题描述】:
对不起,如果我是个白痴,但是这个 if 标签会发生什么?
查看返回:
return render_to_response('productos/por_estado.html', {'productos':productos},
context_instance=RequestContext(request))
#Im not returning 'estado' !
模板:
{% if estado %}
{% block activos_active %}class="active"{% endblock %}
{% endif %}
模板html结果:
class="active"
:S
【问题讨论】: