support wildcards in template names