code: def show_pages(parser, token):
      
      # Validate args.
      if len(token.contents.split()) != 1:
          msg = '%r tag takes no arguments' % token.contents.split()[0]
          raise template.TemplateSyntaxError(msg)
      # Call the node.
      return ShowPagesNode()
docs: Show page links.
  
      Usage:
  
      .. code-block:: html+django
  
          {% show_pages %}
  
      It is just a shortcut for:
  
      .. code-block:: html+django
  
          {% get_pages %}
          {{ pages.get_rendered }}
  
      You can set ``ENDLESS_PAGINATION_PAGE_LIST_CALLABLE`` in your *settings.py*
      to a callable, or to a dotted path representing a callable, used to
      customize the pages that are displayed.
  
      See the *__unicode__* method of ``endless_pagination.models.PageList`` for
      a detailed explanation of how the callable can be used.
  
      Must be called after ``{% paginate objects %}``.