Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static file templates have no Date function available #1527

Closed
Jc-L opened this issue Sep 15, 2023 · 0 comments
Closed

Static file templates have no Date function available #1527

Jc-L opened this issue Sep 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Jc-L
Copy link

Jc-L commented Sep 15, 2023

Version:

  • listmonk: 2.5.1
  • OS: Debian 11

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.

@Jc-L Jc-L added the bug Something isn't working label Sep 15, 2023
@knadh knadh added enhancement New feature or request and removed bug Something isn't working labels Sep 18, 2023
@knadh knadh self-assigned this Sep 18, 2023
@knadh knadh closed this as completed in 717a636 Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants