Added pagination filter for twig templates.