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

Add pad filter #921

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add pad filter #921

wants to merge 1 commit into from

Conversation

uncenter
Copy link
Contributor

Adds a new filter called pad which pads a given string to a given length with a given fill character (defaults to a space).

@uncenter
Copy link
Contributor Author

Ah, just saw #900 (comment). Is it worth opening a PR over at https://github.com/Keats/tera2 instead or is that premature?

@Keats
Copy link
Owner

Keats commented May 28, 2024

Filters are not implemented yet in tera2 but I would wait. I did work a bit on it yesterday and i'm seeing the light regarding that. A dim light still but it's getting there.

@uncenter
Copy link
Contributor Author

Glad to hear it! Excited for tera2. Would you be interested in adding this sort of filter when the time comes for tera2 though? I also have some thoughts about some filters that should be potentially removed/deprecated in the next breaking version...

@Keats
Copy link
Owner

Keats commented May 31, 2024

Some will be yes, i'll create a separate crate for non-basic filters/functions so i can do breaking change in that without issues. This one should be able to be added in the crate itself

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