Skip to content

Add pad filter#921

Closed
uncenter wants to merge 1 commit intoKeats:masterfrom
uncenter:feat/pad
Closed

Add pad filter#921
uncenter wants to merge 1 commit intoKeats:masterfrom
uncenter:feat/pad

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

@uncenter uncenter closed this by deleting the head repository Jan 24, 2025
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