Add env to template context in paginator plugin

Closes #141