title: Jquery knockout - define variables inside templates
body: <p>I have a knockout template, in which i want to define a local parameter (which is a result of a function), and use it inside the template.</p>
  
  <pre><code>&lt;script type="text/html" id="suggestedEmail-template"&gt;
      {{ var customVariable = processResult($data); }}
      &lt;li&gt;
          &lt;span data-bind="text: emailValue, attr: { 'data-customValue': customVariable }"&gt;&lt;/span&gt;
      &lt;/li&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Is it possible?</p>