You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Yanming Zhou (JIRA)" <ji...@apache.org> on 2018/12/04 00:51:00 UTC

[jira] [Created] (FREEMARKER-111) Add syntax sugar for enum comparison

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)