 +  findPartialsRE: /{%\s*(?:extends|include|embed)\s+('[^']+'|"[^"]+").*?(with|%}|\s*%})/g,
 +  findPartialKeyRE: /"((?:\\.|[^"\\])*)"|'((?:\\.|[^"\\])*)'/,
 +  namespaces: [],
- 
+
    /**
     * Accept a Pattern Lab config object from the core and put it in
 @@ -47,24 +46,35 @@ const engine_twig_php = {
- 
+
      const { namespaces, alterTwigEnv, relativeFrom } = config.engines.twig;
- 
+
 +    // Preserve the namespaces from the config so we can use them later to
 +    // evaluate partials.
 +    this.namespaces = namespaces;

+      });
+    return filteredMatches;
   },
 
   findPartialsWithStyleModifiers(pattern) {
@@ -144,7 +177,7 @@ const engine_twig_php = {
 
   patternMatcher(pattern, regex) {
     return null;
-  },
+  }
 };
 
 module.exports = engine_twig_php;

+      alterTwigEnv
     });
   },

   renderPattern(pattern, data) {
     return new Promise((resolve, reject) => {
-      const patternPath = path.isAbsolute(pattern.relPath)
