allow callback for generation of page links
Merge pull request #1 from shmaltorhbooks/master

Using callback for page links generation