VersionExtension
Description
VersionExtension provides the capability to handle semver version strings.
- class jinjazzle.ext.version.VersionExtension(environment)
Jinja2 extension for version manipulation.
- jinjazzle.ext.version.revpkg(lhs, separator1='.', separator2='.')
Take a version, and reverse it in the most simplistic way not taking into account anything that would constitute “pre-release” or “build” information in the context of semver.
Available as a function and a filter. For the latter case, lhs is automatically specified as the left hand side of the filter.
# Returns 3.2.1 {{ revpkg("1.2.3") }}