Help for this page

Select Code to Download


  1. or download this
    my $current_page_num = 2;
    my $num_pages        = 6;
    ...
    if ($current_page_num < $num_pages) {
       ...display link to page $current_page_num+1...
    }
    
  2. or download this
    <a class="if::Selector.link_prev
              sub::href::Selector.link_prev"
    ...
              sub::href::Selector.link_next"
       href="{page_link_next}"
    >Next&gt;gt;</a>
    
  3. or download this
    Selector.link_prev  -> Link to prev page, if any.
    Selector.link_next  -> Link to next page, if any.
    ...
      Selector.Page.is_current -> True if page_num is current page.
      Selector.Page.page_num   -> Loop variable.
      Selector.Page.link       -> Link to page page_num.