'returns True if the data contains a variable pattern'

def _contains_vars(self, data):

    if isinstance(data, string_types):
        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
