September 27, 2004 1:28 AM

Pagination and Matching Entries with Regex, Applied to Main Index View

The Filtering of entries and how entries are displayed on the main index page has been improved. The method is simple, entries get stored in a text file with a time-stamp as their filename, then a list is generated and filtered with the use of grep. Since, nb has no real date system (it relies on the date command), grep'n by date is limited to current year, month, or day. As a neat little side effect, entries can be regex'd using the --list option as well, just keep in mind that the entries' ID's won't be correlated accurately this way. Oh yeah, and the main index page can be paginated as a result of an exercise to improve the paginate function.

Posted by n1xt3r | Permanent link | File under: developer-notes | Comments: (0)


Comments are closed

If you really, really want to comment, please mail