title: Compare strings in templates
body: <p>I have the following template:</p>
  
  <pre><code>{{if . eq "login failed"}}
  &lt;span class="text-error"&gt;Incorrect username or password&lt;/span&gt;
  {{else if . eq "login success"}}
  &lt;span class="text-success"&gt;You have successfully logged in!&lt;/span&gt;
  {{end}}
  </code></pre>
  
  <p>I am passing a string when I execute the template.</p>
  
  <p>However, I get the following error:</p>
  
  <pre><code>executing "login.html" at &lt;.&gt;: can't give argument to non-function .
  </code></pre>
  
  <p>How do I compare the strings within the template?</p>