Skip to content

Commit

Permalink
asahasrabuddhe#141 set config.filePath to view location
Browse files Browse the repository at this point in the history
This enables usage of <mj-include> with paths relative to the view file
  • Loading branch information
tennox committed Oct 10, 2022
1 parent 3437fe6 commit 4cfef5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Process/MJML.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function buildCmdLineFromConfig()
'node',
config('mjml.auto_detect_path') ? $this->detectBinaryPath() : config('mjml.path_to_binary'),
$this->path,
'--config.filePath=' . dirname($this->view->getPath()),
'-o',
$this->compiledPath,
]);
Expand Down

0 comments on commit 4cfef5b

Please sign in to comment.