Exclude templates

Fix this error http://api.cakephp.org/2.3/class-AppShell.html