use stdin as template if filename is a single dash