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
Already internally tera makes use of path.strip_prefix. I would argue .strip_prefix is pretty useful for a templating language. It would be great to have that allowed.
My use case specifically is git cliff which uses tera. I want to strip out the project from the version in a string of project-version. Currently they're combined and I'm trying to work around orhun/git-cliff#1068
The text was updated successfully, but these errors were encountered:
EvanCarroll
changed the title
Feature request, strip_prefix, and strip_suffix
Feature request, strip_prefix, and strip_suffixMar 1, 2025
Already internally
tera
makes use ofpath.strip_prefix
. I would argue.strip_prefix
is pretty useful for a templating language. It would be great to have that allowed.My use case specifically is
git cliff
which usestera
. I want to strip out the project from theversion
in a string ofproject-version
. Currently they're combined and I'm trying to work around orhun/git-cliff#1068The text was updated successfully, but these errors were encountered: