Write to stream inside the partial