a quoted string, unquote it and return it. If s is a variable, resolve it and return it. if not s[0] in (', ''): return template.resolve_variable(s, context) if s[-1] == s[0]: s = s[:-1] # Strip trailing quote, if any. s = s[1:] # Strip starting quote. return sThis made use of a template:{% comment %} This template is