Re: Custom tag inside a block tag. Django templates
Can you please submit error you get? {{ var }} is for varaibles, not for tags.
2012/6/11 David Gómez <davisito89@gmail.com>
Hello everyone.In Django 1.2.5 I had something like:{% block contact %}<link type="text/css" href="{% custom_tag %}css/contact.css" rel="stylesheet" />{% endblock %}Where custom_tag returns a single url. Now, in Django 1.4 this is not working and I have to change {% custom_tag %} for {{ custom_tag }} in order to make it work. Why?Best regards,David Gómez.--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/fgOVwUxQ2QMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
С уважением,
Даниил.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home