Skip to content

Commit

Permalink
fix: component notes do not work when using twigAdapter as docs engine (
Browse files Browse the repository at this point in the history
#46)

Adjusted to use better fix from: frctl/twig#46 (review)

Closes: #45
  • Loading branch information
rchavik authored and Mihkel Eidast committed May 15, 2020
1 parent e124a17 commit e106665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/twig/src/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit e106665

Please sign in to comment.