Changeset 13 in bookmarks for trunk/BookmarkApp.pm


Ignore:
Timestamp:
01/19/13 17:16:14 (11 years ago)
Author:
peter
Message:
  • the list of bookmarks accepts limit and offset parameters
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BookmarkApp.pm

    r9 r13  
    7070    my $format = $q->param('format') || 'html'; 
    7171    my $tag = $q->param('tag'); 
    72     my @resources = $bookmarks->get_resources({ tag => $tag }); 
     72    my $limit = $q->param('limit'); 
     73    my $offset = $q->param('offset'); 
     74    my @resources = $bookmarks->get_resources({ 
     75        tag    => $tag, 
     76        limit  => $limit, 
     77        offset => $offset, 
     78    }); 
    7379    my @all_tags = $bookmarks->get_tags({ selected => $tag }); 
    7480    my @cotags = $bookmarks->get_cotags({ tag => $tag }); 
Note: See TracChangeset for help on using the changeset viewer.