Added template dir global.