You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the bug and steps to reproduce:
Some function, like {{ Date "2006" }}, throw an error when used in static file public/templates/index.html. Use case was to have dynamic (c) date in the footer.
Logs: 2023/09/15 07:39:53 init.go:758: error parsing public templates: template: message.html:43: function "Date" not defined
Expected behaviour:
Make it possible to use function described in templating documentation, possibly also the Sprig function. If not, clarify limitation in documentation.
The text was updated successfully, but these errors were encountered:
Version:
Description of the bug and steps to reproduce:
Some function, like
{{ Date "2006" }}
, throw an error when used in static filepublic/templates/index.html
. Use case was to have dynamic (c) date in the footer.Logs:
2023/09/15 07:39:53 init.go:758: error parsing public templates: template: message.html:43: function "Date" not defined
Expected behaviour:
Make it possible to use function described in templating documentation, possibly also the Sprig function. If not, clarify limitation in documentation.
The text was updated successfully, but these errors were encountered: