We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to import nunjucks templates using the es6 syntax , please?
eg this one : var tpl = require('./views/page.njk');
var tpl = require('./views/page.njk');
The text was updated successfully, but these errors were encountered:
import * as tpl from './views/page.njk'
Sorry, something went wrong.
import tpl from './views/page.njk'; const result = tpl.render({ message: 'hello es6' });
^ Bit off topic - how to use ES6 import syntax is not really an issue of this project
Thank you for answering that illegal question anyway....
Long time not tried but today again :
No branches or pull requests
How to import nunjucks templates using the es6 syntax , please?
eg this one :
var tpl = require('./views/page.njk');
The text was updated successfully, but these errors were encountered: