Generator by yaml