parameters: (other_validators)
return_statement: return validator
docstring: Validate that the configuration option can (optionally) be templated.
  
      The user can declare a value as template by using the '!lambda' tag. In that case,
      validation is skipped. Otherwise (if the value is not templated) the validator given
      as the first argument to this method is called.
docstring_summary: Validate that the configuration option can (optionally) be templated.
docstring_tokens: Validate that the configuration option can ( optionally ) be templated .
function: def templatable(other_validators):
      """Validate that the configuration option can (optionally) be templated.
  
      The user can declare a value as template by using the '!lambda' tag. In that case,
      validation is skipped. Otherwise (if the value is not templated) the validator given
      as the first argument to this method is called.
      """
      schema = Schema(other_validators)
  
      def validator(value):
          if isinstance(value, Lambda):
              return returning_lambda(value)
          if isinstance(other_validators, dict):
              return schema(value)
          return schema(value)
  
      return validator
function_tokens: def templatable ( other_validators ) : schema = Schema ( other_validators ) def validator ( value ) : if isinstance ( value , Lambda ) : return returning_lambda ( value ) if isinstance ( other_validators , dict ) : return schema ( value ) return schema ( value ) return validator