freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhouyanming (JIRA)" <>
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
             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 
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

This message was sent by Atlassian JIRA

View raw message