title: How to use Handlebars ternary helper?
body: <p>Following <a href="https://stackoverflow.com/a/11916194/770127">this answer</a>, I wrote a helper like </p>
  
  <pre><code>module.exports.register = function (Handlebars) {
      Handlebars.registerHelper('ternary', function(test, yes, no) {
          return test ? yes : no;
      });
  };
  </code></pre>
  
  <p>I'm certain that the helper is loaded and being defined but can't figure out the syntax to use it. I tried using it like </p>
  
  <pre><code>&lt;div&gt;{{ternary(true, 'yes', 'no')}}&lt;/div&gt;
  </code></pre>
  
  <p>but that gives an <a href="https://github.com/assemble/assemble/" rel="nofollow noreferrer">assemble</a> build error</p>
  
  <pre><code>Warning: Parse error on line 10:
  ...&lt;div&gt;{{ternary(true, 'yes',
  ----------^
  Expecting 'ID', 'DATA', got 'INVALID' Use --force to continue.
  </code></pre>
  
  <p>What is the proper syntax to use a helper like that? </p>