A Twig file says, for example, where the title, text and image of a page go. The fields for it are defined by the XML file of the template. You only see the result. Extensions sometimes ship Twig functions that your agency builds in.