Changed methodname from renderTemplate to getTemplate