We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7502c46 commit cdc6519Copy full SHA for cdc6519
samples/node/web/koa/view-koa/app.js
@@ -31,7 +31,7 @@ if (! isProduction) {
31
app.use(bodyParser());
32
33
// add nunjucks as view:
34
-app.use(templating('view', {
+app.use(templating('views', {
35
noCache: !isProduction,
36
watch: !isProduction
37
}));
samples/node/web/koa/view-koa/templating.js
@@ -7,7 +7,7 @@ function createEnv(path, opts) {
7
watch = opts.watch || false,
8
throwOnUndefined = opts.throwOnUndefined || false,
9
env = new nunjucks.Environment(
10
- new nunjucks.FileSystemLoader('views', {
+ new nunjucks.FileSystemLoader(path, {
11
noCache: noCache,
12
watch: watch,
13
}), {
0 commit comments