Looking at your nunjucks render call, `templatePath` never changes. Why not make everything here an absolute URL?