You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "zhouyanming (JIRA)" <ji...@apache.org> on 2016/11/01 02:55:59 UTC

[jira] [Created] (FREEMARKER-38) Expose API for expression evaluation

zhouyanming created FREEMARKER-38:
-------------------------------------

             Summary: Expose API for expression evaluation
                 Key: FREEMARKER-38
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-38
             Project: Apache Freemarker
          Issue Type: New Feature
          Components: engine
    Affects Versions: 2.3.25-incubating
            Reporter: zhouyanming


There are lots of EL such like SPEL MVEL OGNL, But I need an EL which keep consistency with freemarker template, for example 
{code:java}
Expression exp = new Expression("quantity gt 10",freemarkerConfiguration);
Map<String, Object> ctx = new HashMap<>();
ctx.put("quantity", 12);
Object value = exp.eval(ctx); //return Boolean.TRUE
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)