Adds templating options to stream and file