title: Test the return value of a template tag
body: <p>There's a boolean variable defined in <code>settings.py</code> that I'd like to make visible in my templates, so that I can control whether a part of the template is shown.</p>
  
  <p>I've thought of creating a template tag to expose the value to the template:</p>
  
  <pre><code>@register.simple_tag
  def show_something():
      return settings.SHOW_SOMETHING
  </code></pre>
  
  <p>... which I would use in the template like this:</p>
  
  <pre><code>{% if show_something %}
      Show it
  {% endif %}
  </code></pre>
  
  <p>... but unfortunately it doesn't seem to work.</p>
  
  <p>Also tried outputting the value, and this displays it as I expected:</p>
  
  <pre><code>{% show_something %}
  </code></pre>
  
  <p>Any idea if using a template tag is possible for what I need, or if there's a better way?</p>