Allow widgets to use custom functions in templates
Limit number of pages to show in paginator