Added 'process' option for preprocessing templates