Add function to handle customized templates names