Skip to content

Commit

Permalink
Add path holder for static files
Browse files Browse the repository at this point in the history
  • Loading branch information
carry0987 committed Jul 29, 2024
1 parent 4663ccb commit 870d189
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,11 @@ public function loadStaticFile(string $file)
{
$file = Utils::trimPath($this->options['static_dir'].Template::DIR_SEP.$file);

//Modify path
if ($this->path_holder !== null) {
$file = call_user_func($this->path_holder, $file, 'static');
}

return $file;
}

Expand Down

0 comments on commit 870d189

Please sign in to comment.