I have a template tag to generate the url as follows;
<li><a href="{% url 'blog_archive' year='2013' %}">Archive</a></li>
I want the '2013'(year) to be generated automatically based off the current year. There is a tag that can do this {% now 'Y' %}
however i cannot use it inside the existing template tag as it just produces errors.
Do i need to create a custom tag to do this?