Skip to content

Commit b3003ee

Browse files
authored
Restore packages/engine-twig-php/lib/engine_twig_php.js
1 parent f24d0e9 commit b3003ee

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/engine-twig-php/lib/engine_twig_php.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ const engine_twig_php = {
2727
engineName: 'twig-php',
2828
engineFileExtension: '.twig',
2929
expandPartials: false,
30-
findPartialsRE: /{%\s*(?:extends|include|embed)\s+('[^']+'|"[^"]+").*?(with|%}|\s*%})/g,
30+
findPartialsRE:
31+
/{%\s*(?:extends|include|embed)\s+('[^']+'|"[^"]+").*?(with|%}|\s*%})/g,
3132
findPartialKeyRE: /"((?:\\.|[^"\\])*)"|'((?:\\.|[^"\\])*)'/,
3233
namespaces: [],
3334

@@ -45,12 +46,8 @@ const engine_twig_php = {
4546
process.exit(1);
4647
}
4748

48-
const {
49-
namespaces,
50-
alterTwigEnv,
51-
relativeFrom,
52-
...rest
53-
} = config.engines.twig;
49+
const { namespaces, alterTwigEnv, relativeFrom, ...rest } =
50+
config.engines.twig;
5451

5552
// Schema on config object being passed in:
5653
// https://github.com/basaltinc/twig-renderer/blob/master/config.schema.json

0 commit comments

Comments
 (0)