Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Freemarker - Defining custom build-ins / filters

Tags:

freemarker

Is it possible to define a custom build-ins (name no longer will be suitable) in ftl?
I don't want to make it a function but instead a build-in, because of semantic premises.

like image 463
vucalur Avatar asked Nov 08 '13 10:11

vucalur


1 Answers

It's not possible, the ? syntax is reserved for the built-in functions. (This meant to change in the future BTW. Sadly, in the far future, judging from the size of the backlog before it and the pace it's eliminated...)

like image 173
ddekany Avatar answered Oct 10 '22 22:10

ddekany