factored out a new lib/nunjucks-transform-extension.js module.