ekandreas / bladerunner

WordPress plugin for Laravel Blade templating DEPRECATED
http://bladerunner.elseif.se
12 stars 1 forks source link

bladerunner/cache/path filter not being honored #71

Closed nathanaelphilip closed 3 years ago

nathanaelphilip commented 6 years ago

i have this in my theme, but it’s not changing the path to .cache. Am I doing something wrong?

add_filter('bladerunner/cache/path', function() {
    return WP_CONTENT_DIR.'/.cache';
  });
peter-brennan commented 6 years ago

Did you come up with a solution to this. It is not working for me either.

vpillinger commented 6 years ago

The issue here is the following:

Version 1.7.4

    \Bladerunner\Config::repo([
            'view.compiled' => "{$paths['dir.upload']}/.cache",
            'view.paths' => $viewPaths,
        ] + $paths);

Master

    \Bladerunner\Config::repo([
            'view.compiled' => apply_filters('bladerunner/cache/path', "{$paths['dir.upload']}/.cache"),
            'view.paths' => \Bladerunner\Config::viewPaths(),
        ] + $paths);

So you need to be using the version from the master branch to have this work.

@ekandreas This can be fixed by releasing a new version with the code from the master branch.

ekandreas commented 3 years ago

Hi! This is a deprecated package. Please use https://github.com/EFTEC/BladeOne instead!