templates: add pkgstyle-specific template env
pkgstyles can now define TEMPLATE_ENV dict containing variables and functions available during templating when using that particular style as well as TEMPLATE_ENV_DYNAMIC dict containing functionas to be evaluated on template render to fill in dynamic template variables. New {{ now }} dynamic variable containing current date in suitable changelog format is now available in templates using deb or rpm pkgstyles through this new mechanism.
parent
30f053d8
No related branches found
No related tags found
Showing
- apkg/pkgstyles/deb.py 17 additions, 0 deletionsapkg/pkgstyles/deb.py
- apkg/pkgstyles/rpm.py 17 additions, 0 deletionsapkg/pkgstyles/rpm.py
- apkg/pkgtemplate.py 21 additions, 0 deletionsapkg/pkgtemplate.py
- distro/pkg/deb/changelog 2 additions, 2 deletionsdistro/pkg/deb/changelog
- distro/pkg/rpm/apkg.spec 2 additions, 2 deletionsdistro/pkg/rpm/apkg.spec
Please register or sign in to comment