Twig extension adding a function to self-fill Twig metadata in a flat CMS context.