freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FREEMARKER-86) min(x,y) and max(x,y)
Date Thu, 05 Apr 2018 11:49:00 GMT

     [ https://issues.apache.org/jira/browse/FREEMARKER-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dekany closed FREEMARKER-86.
-----------------------------------

> min(x,y) and max(x,y)
> ---------------------
>
>                 Key: FREEMARKER-86
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-86
>             Project: Apache Freemarker
>          Issue Type: Improvement
>          Components: engine
>            Reporter: Vojtech Knyttl
>            Priority: Major
>             Fix For: 2.3.28
>
>
> It would be great to have these two builtins for numbers. At the moment, I have to create
functions like:
> {code}
> <#function max(a, b)>
>      <#return (a > b)?then(a, b)>
> </#function>
> {code}



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

Mime
View raw message