Matching pagination template output with lens helper functions