{% if paginator.hasPages %} {% set handler = handler|default('onAjax') %} {% endif %}