Skip to content

Commit

Permalink
Merge pull request #1118 from joekarasek/feature/twig-php-renderer-op…
Browse files Browse the repository at this point in the history
…tions

feat: pass additional configuration into twig-php engine
  • Loading branch information
bmuenzenmeyer committed Jan 17, 2020
2 parents ec50b62 + dff5a78 commit 41dcf38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/engine-twig-php/lib/engine_twig_php.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const engine_twig_php = {
process.exit(1);
}

const { namespaces, alterTwigEnv, relativeFrom } = config.engines.twig;
const { namespaces, alterTwigEnv, relativeFrom, ...rest } = config.engines.twig;

// Schema on config object being passed in:
// https://github.com/basaltinc/twig-renderer/blob/master/config.schema.json
Expand All @@ -55,6 +55,7 @@ const engine_twig_php = {
},
relativeFrom,
alterTwigEnv,
...rest,
});

// Preserve the namespaces (after recursively adding nested folders) from the config so we can use them later to evaluate partials.
Expand Down

0 comments on commit 41dcf38

Please sign in to comment.