title: Return function value in lodash templates
body: <p>I am using lodash templates to render html templates client side. There are many html templates which are being repeated. So, I decided to call the repeating template in another template. For example:</p>
  <h3>dummy.html</h3>
  <pre><code>&lt;%= _.template(templates['button'])({ title: &quot;click me&quot; }) %&gt;
  </code></pre>
  <p>The above approach works but as I am calling <code>_.template</code> to render a button again and again, I thought to make a global function as shown below:</p>
  <h3>dummy.js</h3>
  <pre><code>var sb = {
      setButton: function(data){
          data = data || {};
          return _.template(templates['button'])(data);
      },
      /* other functions */
  }
  </code></pre>
  <p>and then call in the <code>dummy.html</code> as:</p>
  <pre><code>&lt;%= sb.setButton({ title: &quot;click me&quot; }) %&gt;
  </code></pre>
  <p>But this isn't working. (<em>It just doesn't render</em>)</p>
  <p>What I am doing wrong here?</p>
  <p><strong>EDIT</strong>:</p>
  <p>I placed <code>console.log(this)</code> in <code>setButton</code> function. it was not logging anything in chrome console. Then I removed <code>=</code> from lodash template syntax, then it logged <code>sb</code> global variable.</p>
  <pre><code>&lt;% sb.setButton({ title: &quot;click me&quot; }) %&gt;
  </code></pre>
  <p>But still the above one is not rendering the button.</p>