Skip to content

Commit

Permalink
Merge pull request #321 from mgrsskls/master
Browse files Browse the repository at this point in the history
Use `allowInlineIncludes` and `path` option for twig engine
  • Loading branch information
doowb committed Jun 27, 2019
2 parents 13a9e53 + 925424b commit 819582d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,9 @@ exports.twig.render = function(str, options, cb) {
return promisify(cb, function(cb) {
var engine = requires.twig || (requires.twig = require('twig').twig);
var templateData = {
data: str
data: str,
allowInlineIncludes: options.allowInlineIncludes,
path: options.path
};
try {
var tmpl = cache(templateData) || cache(templateData, engine(templateData));
Expand Down

0 comments on commit 819582d

Please sign in to comment.