multiple extension support for templates