added cssTemplates option to provide template for each format