Add getTemplate method