Yanming Zhou created FREEMARKER-111:
---------------------------------------

             Summary: Add syntax sugar for enum comparison
                 Key: FREEMARKER-111
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-111
             Project: Apache Freemarker
          Issue Type: Improvement
            Reporter: Yanming Zhou


Currently enum comparison should be
{code:xml}
<#if account.status.name()=='LOCAL'></#if>
{code}

It's sweet if freemarker supports
{code:xml}
<#if account.status==LOCAL></#if>
{code}
or
{code:xml}
<#if account.status=='LOCAL'></#if>
{code}
same to switch directive.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to