

def _handle_variable(self, token):
    variable = self.strip_token(token, self.TOKEN_VARIABLE_START, self.TOKEN_VARIABLE_END).strip()
    if self.auto_escape:
        self.buffered.append('escape({})'.format(variable))
    else:
        self.buffered.append('to_text({})'.format(variable))

dataset/ETHPy150Open mozillazg/bustard/bustard/template.py Template._handle_variable/original