Skip to content
  • Jakub Ružička's avatar
    058044f0
    templates: add pkgstyle-specific template env · 058044f0
    Jakub Ružička authored
    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.
    058044f0
    templates: add pkgstyle-specific template env
    Jakub Ružička authored
    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.
Loading