changed template code so you can use templateName in define instead of "./templatePath/templatename.Extension"