Keep undeclared_template_variables as a property
This commit is contained in:
parent
b01f033d14
commit
1bba2f92b7
@ -558,7 +558,7 @@ class DocxTemplate(object):
|
||||
self.docx.save(filename,*args,**kwargs)
|
||||
self.post_processing(filename)
|
||||
|
||||
def undeclared_template_variables(self, jinja_env=None):
|
||||
def get_undeclared_template_variables(self, jinja_env=None):
|
||||
xml = self.get_xml()
|
||||
xml = self.patch_xml(xml)
|
||||
if jinja_env:
|
||||
@ -568,6 +568,8 @@ class DocxTemplate(object):
|
||||
parse_content = env.parse(xml)
|
||||
return meta.find_undeclared_variables(parse_content)
|
||||
|
||||
undeclared_template_variables = property(get_undeclared_template_variables)
|
||||
|
||||
|
||||
class Subdoc(object):
|
||||
""" Class for subdocument to insert into master document """
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user