Adding a template tag to generate query strings

To be honest, I don’t have a convincing use case for the following, but supporting multiple dicts as in

{% querystring mydict1 mydict2 %}

(where mydict1 is typically request.GET and mydict2 is some custom “options” dict) seems to be an approach that is both generic and unobtrusive.