template also when only comments present
This commit is contained in:
parent
6ddea3e915
commit
6102a4b9b4
1 changed files with 4 additions and 1 deletions
|
@ -370,7 +370,10 @@ class Templar:
|
||||||
'''
|
'''
|
||||||
returns True if the data contains a variable pattern
|
returns True if the data contains a variable pattern
|
||||||
'''
|
'''
|
||||||
return self.environment.block_start_string in data or self.environment.variable_start_string in data
|
for marker in [self.environment.block_start_string, self.environment.variable_start_string, self.environment.comment_start_string]:
|
||||||
|
if marker in data:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def _convert_bare_variable(self, variable, bare_deprecated):
|
def _convert_bare_variable(self, variable, bare_deprecated):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue