importer templates refactored to nunjucks