title: How to use django's register.simple_tag with "as"?
body: <p>I've really messed up with stuff like</p>
  
  <pre><code>&lt;p&gt;{% trans "Visit our" %}&lt;a href="{% url "help" %}"&gt;{% trans "help page" %}&lt;/a&gt;
  </code></pre>
  
  <p>Where xurl is my tag registered like</p>
  
  <pre><code>@register.simple_tag(takes_context=True)
  def xurl(context, view_name, *args, **kwargs):
  </code></pre>
  
  <p>As I know I can use variables in {% blocktrans %}, so good solution for me is somehow use my tag like django's url tag like</p>
  
  <pre><code>{% xurl "help" as help_url %}
  </code></pre>
  
  <p>and then use help_url variable in blocktrans. I can't use @register.tag to use "as" because I need to get current language from context.</p>