You should do something like this for the files mostly copied from twig