1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

New macro $zonerelfile in template file.

This commit is contained in:
Przemyslaw Sztoch
2020-05-15 23:40:13 +02:00
committed by Ondřej Caletka
parent 24d992d999
commit f9c6a52357

View File

@ -395,7 +395,7 @@ def template_config(checkoutpath, template, blacklist=set(), whitelist=set()):
zonevar = defaultvar
out.append(itemtpl.substitute(
mapping, zonename=zonename,
zonefile=str(f), zonevar=zonevar,
zonefile=str(f), zonerelfile=str(f.relative_to(checkoutpath)), zonevar=zonevar,
))
if footertpl.template:
out.append(footertpl.substitute(mapping))