12.09.2017 - There is a recipe in the Grav documentation here. In the example they create a plugin, and implement a twig extension providing access to a .