Which twig file is being used and how? I have a page in Craft (2.x) that displays several links and I was able to find which twig file had those links by searching the code base of twigs.  Those links point to some Angular code with links like this:

/support/give?source=


By trial and error, I discovered that the Angular code is invoked as part of a twig file in craft/templates/_views/  The original conundrum was there were two "give" files:  give.twig and give-new.twig and I didn't know which one was the actual twig invoked.  By trail and error again, I determined it was using the give-new.twig by changing the template.  But for the life of me, I cannot figure out how THAT twig is being invoked.  I scanned for "give-new" in the code, both craft and Angular and I searched in Settings, Routes and Web Content for any reference to it but I cannot figure out how a URL like /support/give maps to the give-new.twig file.

So the question is: How do I know which twig is invoked by a URL?  I am pretty sure that there isn't any Angular code doing this, the Angular code bundle references are in the twig file, but how that twig is invoked is a mystery.  Where do I start in finding the reference?
You could use this variable to get the template name: {{ _self.getTemplateName() }}

Put it at the top of all your template files: 

&lt;!-- {{ _self.getTemplateName() }} --&gt;

And then for every template called it should have the commented out template name.

In Craft 3, there's a nice plugin called "Template Comments" which is great for this... But I don't see a version for Craft 2.