Open notflip opened 2 years ago
I'm trying out nunjucks for the first time, however it seems like there's an issue with the import, this is my code
import nunjucks from 'nunjucks' class EmailCompiler { static compile(html: string, data: {username: string}) { nunjucks.configure({autoescape: true}) return nunjucks.renderString(html, data) } } export default EmailCompiler
I'm also not receiving any IDE support when I hover the configure or renderString methods, is my method of import faulty?
can you create repo to reproduce?
I'm trying out nunjucks for the first time, however it seems like there's an issue with the import, this is my code
I'm also not receiving any IDE support when I hover the configure or renderString methods, is my method of import faulty?