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

feat(template): enable more tera builtin funcs/filters #2354

Closed
wants to merge 1 commit into from

Conversation

tfh-cri
Copy link

@tfh-cri tfh-cri commented Jul 6, 2024

enables default-features build arg for Tera, which adds the following additional filters/functions:

Filters:

  • truncate
  • date
  • filesizeformat
  • slugify
  • urlencode
  • urlencode_strict

Functions:

  • now

Details at https://keats.github.io/tera/docs/#built-ins

enables `default-features` build arg for Tera, which adds the following
additional filters/functions:

Filters:

* `truncate`
* `date`
* `filesizeformat`
* `slugify`
* `urlencode`
* `urlencode_strict`

Functions:

* `now`

Details at https://keats.github.io/tera/docs/#built-ins
@tfh-cri
Copy link
Author

tfh-cri commented Jul 6, 2024

This is a (somewhat belated) followup to #2049

@jdx
Copy link
Owner

jdx commented Jul 7, 2024

Isn't default features on by default?

@tfh-cri
Copy link
Author

tfh-cri commented Jul 7, 2024

Isn't default features on by default?

Huh, it does seem to be, although I could have sworn when I posted that original comment to #2049 it was as a result of wanting to use {{ foo | slugify }} and it not working, which sent me down the rabbithole of why not.

...Doh, looks like it got fixed in 48ca740 and I hadn't realised.

So yeah, this is unnecessary, although I do now know how to build mise 😄

@tfh-cri tfh-cri closed this Jul 7, 2024
@tfh-cri tfh-cri deleted the enable-extra-tera-funcs branch July 7, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants