title: Syntax to supply a parameter to a custom template tag in {% if %} block
body: <p>I have setup a custom template tag (simple_tag) (using <a href="https://stackoverflow.com/a/7716141/1369798">https://stackoverflow.com/a/7716141/1369798</a>) with a definition like this:</p>
  
  <p><strong>templatetags/polls_extras.py</strong></p>
  
  <pre><code>def settings_value(name)
  </code></pre>
  
  <p>which I am able to use in my template like this:</p>
  
  <p><strong>templates/index.html</strong></p>
  
  <pre><code>{% settings_value "ALLOWED_BOOL" %}
  </code></pre>
  
  <p>But this just inserts the text into my HTML output.</p>
  
  <p>What is the syntax to use my template tag with parameter in an {% if %}?</p>
  
  <p>I tried this but I get the error: <em>TemplateSyntaxError at / Unused '"ALLOWED_BOOL"' at end of if expression.</em></p>
  
  <p><strong>templates/index.html</strong></p>
  
  <pre><code>{% if settings_value ALLOWED_BOOL %}
  You are allowed.
  {% endif %}
  </code></pre>