Add twig extension and example