code: def resolve(var, context):
      
      try:
          return var.resolve(context)
      except template.VariableDoesNotExist:
          return var.var
docs: Resolve the variable, or return the value passed to it in the first place