Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-38

Expose API for expression evaluation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.25-incubating
    • None
    • engine
    • None

    Description

      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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            quaff Yanming Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: