HubSpot / jinjava

Jinja template engine for Java
Apache License 2.0
690 stars 168 forks source link

Not necessary to defer today(). #1146

Closed hs-lsong closed 8 months ago

hs-lsong commented 8 months ago

The value of today() does not change frequently, let make it not deferred.

Some users use "today() | datetimeformat("%Y")" for generate the Copyright year. They should have used the year() function.