dynamic values in yaml

raphinou at gmail.com raphinou at gmail.com
Tue Aug 19 10:32:51 EDT 2014


Hi,

I'm using pyyaml, and need some values in a yaml files to be dynamic, for example somethin like:

  filename: /tmp/backup_{% time.strftime('%Y-%m-%d') }.tgz

Is there a simple way to achieve this? (Eg with a templating system that would first handle the template parts from the yaml file)

Thanks




More information about the Python-list mailing list