Is it possible to do date comparisons against the current date in a freemarker template without passing the current date into the template?
标签:
freemarker
相关问题
- How to remove duplicate elements in a array using
- test if string can be converted to a number in Fre
- Treat a java.lang.Iterable as a #list expression i
- Invoke Java method with parameters from Freemarker
- Struts 2 + Sitemesh 3 integration - NPE in Freemar
相关文章
- Keycloak Remove First Name and Last Name fields on
- freemarker cannot handle request for '/' o
- How do I use a template code generator (eg freemar
- Freemarker does not assign staticUtil
- java》freemarker配置问题
- Better template language needed [closed]
- Freemarker print date in template
- Sandboxing Java / Groovy / Freemarker Code - Preve
From FreeMarker 2.3.17 on you can use the new special variable
.now
:NO
Freemarker is a templating library, there isn't a today variable.
But you can pass a
new Date()
Java Object to the template.