title: How to call JavaScript function from Freemarker?
body: <p>I have some basic JavaScript function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function someTestFunction(param1, param2) {
          //do something
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>and Freemarker code:</p>
  
  <pre><code>&lt;#if something==somethingElse&gt;
      // call: someTestFunction(something, 123)
  &lt;#else&gt;
      // call: someTestFunction(somethingElse, 345)
  &lt;/#if&gt;
  </code></pre>
  
  <p>my question is: Is it possible, and if so, how to call someTestFunction() from inside freemarker tags?</p>