In addition to a static function this adds a filter to do the same thing

To be consistent with Jinja syntax and the url/reverse function/filter already defined, this implements a static filter. Docs and tests updated as well.

Cheers

Andrew