diff --git a/packages/twig/src/adapter.js b/packages/twig/src/adapter.js index c34c0755d..e6ec0d5fb 100644 --- a/packages/twig/src/adapter.js +++ b/packages/twig/src/adapter.js @@ -137,7 +137,7 @@ class TwigAdapter extends Fractal.Adapter { return new Promise(function(resolve, reject){ - let tplPath = Path.relative(self._source.fullPath, path); + let tplPath = path ? Path.relative(self._source.fullPath, path) : undefined; try { let template = self.engine.twig({