title: is mvel suitable for templating JavaScript
body: <p>We have some JavaScript code templates that we need to interpolate server-side with code like:</p>
  
  <pre><code>var version = ${appVersion};
  </code></pre>
  
  <p>I thought MVEL would be suitable to this, but it appears to be too smart:</p>
  
  <pre><code>    String input = "foo()";
      assertEquals(input, MVEL.evalToString(input));
  </code></pre>
  
  <p>barfs with:</p>
  
  <blockquote>
    <p>[Error: no such method or function:
    foo] [Near : {... foo( ....}]
                     ^ [Line: 1, Column: 0]   at
    org.mvel2.PropertyAccessor.getMethod(PropertyAccessor.java:843)
      at
    org.mvel2.PropertyAccessor.getNormal(PropertyAccessor.java:203)</p>
  </blockquote>
  
  <p>is MVEL overkill for simple var interpolation? If so, should I just write my own, or are there any java libs that do simple variable and POJO  interpolation?</p>
  
  <p>thanks
  -nikita</p>