Abstract away format of templates