Skip to content

Commit

Permalink
back
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Oct 17, 2019
1 parent 297eee7 commit 290fc6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ function njkCompile(data) {
dictionary[key] = value;
return dictionary;
});
env.addFilter('json', function(dictionary) {
return JSON.stringify(dictionary || '');
});
return nunjucks.compile(data.text, env, data.path);
}

Expand Down

0 comments on commit 290fc6c

Please sign in to comment.