title: Velocity and JavaScript
body: <p>I have a bit of a problem here:</p>
  
  <pre><code>#foreach($image in $command.lessonLearned.images)
  
        Image: $image.fileName &lt;input type="submit" onclick="submitForm();setImageToRemove($image.id);setAction('removeImage');" value="REMOVE"/&gt;&lt;br/&gt; 
  #end
  </code></pre>
  
  <p>$image.id inside the onclick event is not evaluated as a velocity variable. How do I make it write out the variable content and not just the variable name?</p>