module generation: make package tags accessible in template (#48213)
This commit is contained in:
parent
60be77f761
commit
e35c5ec104
@ -564,6 +564,12 @@ def __init__(self, configuration):
|
||||
def spec(self):
|
||||
return self.conf.spec
|
||||
|
||||
@tengine.context_property
|
||||
def tags(self):
|
||||
if not hasattr(self.spec.package, "tags"):
|
||||
return []
|
||||
return self.spec.package.tags
|
||||
|
||||
@tengine.context_property
|
||||
def timestamp(self):
|
||||
return datetime.datetime.now()
|
||||
|
Loading…
Reference in New Issue
Block a user