Skip to content

Instantly share code, notes, and snippets.

View thevtm's full-sized avatar

Vinícius Tabille Manjabosco thevtm

  • Rotterdam, Netherlands
View GitHub Profile
@thevtm
thevtm / pagination.jade
Created September 15, 2016 19:10 — forked from backus/pagination.jade
Jade + Bootstrap Pagination Mixin
//- Pagination mixin
//- ----------------
//- numPages = # links to serve up
//- numButtons = # of "side" buttons that will be present.
//- 2 numButtons will result in | << | 1 | 2 |>3<| 4 | 5 | >> |
//- curr = current page
//- base = base url before num
//- start at page 1
//-
//- Example: