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
Like the example you gave:
const gulp = require('gulp'); const nunjucks = require('gulp-nunjucks'); const data = require('gulp-data'); gulp.task('default', () => gulp.src('templates/greeting.html') .pipe(data(() => ({name: 'Sindre'}))) .pipe(nunjucks.compile({ watch: true, noCache: true })) .pipe(gulp.dest('dist')) );
This one doesn't work. Is there any work around for this?
The text was updated successfully, but these errors were encountered:
@ganlanyuan have a try to set the options as the second param in gulp-nunjucks, such as:
.pipe(nunjucks.compile({ type: "native" }, { tags: { blockStart: '<%', blockEnd: '%>', variableStart: '<$', variableEnd: '$>', commentStart: '<#', commentEnd: '#>' } }))
Sorry, something went wrong.
No branches or pull requests
Like the example you gave:
This one doesn't work. Is there any work around for this?
The text was updated successfully, but these errors were encountered: