Add method renderTemplate