jlongster/nunjucks — pull request #181 by evanderkoogh (2014-01-26 04:19:31+00:00)
Title: Added a filter absolutize to create absolute urls out of relative or absolute urls

I have a variable that sometimes contains a relative and sometimes an absolute URL. But for the og:image I want an absolute URL.
So I wrote a short filter for that. It takes a base to prepend to relative urls and leave absolute ones untouched.
Uses the standard functionality present in node.url.