title: writing javascript in ftl file
body: <p>I have an ftl file which is sending a notification e-mail. I need to change the subject line of these mails. So, far I have managed to change the subject and pass a URL in it. But my requirement is to pass a specific parameter from the URL. Can I write a java scriplet or javascript function inside this file. </p>
  
  <p>Here is the snippet of code:</p>
  
  <pre><code>&lt;@s.document "${emailDigestBean.containerHtmlUrl}"&gt; 
      &lt;#if u.isHtml()&gt;
      &lt;h1&gt;${emailDigestBean.localizedText}&lt;/h1&gt;
      &lt;#if emailDigestBean.briefDesc??&gt;
      &lt;p id="message"&gt;${emailDigestBean.briefDesc}&lt;/p&gt; 
      &lt;p&gt;Added By Me:${emailDigestBean.containerHtmlUrl}&lt;/p&gt;
      &lt;/#if&gt;
  </code></pre>
  
  <p>${emailDigestBean.containerHtmlUrl}....contains the URL which I want to parse.</p>
  
  <p>Thanks in advance.</p>