freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhouyanming (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FREEMARKER-38) Expose API for expression evaluation
Date Tue, 01 Nov 2016 02:55:59 GMT
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)

Mime
View raw message