WP Manifestindependent plugin directory
manifest / themes / timber-fractal-paths

Timber Custom Loader

Use Fractal with Timber in WordPress

by bluecadet · github.com/bluecadet/timber-fractal-paths

5stars
2kcomposer installs
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/bluecadet/timber-fractal-paths/archive/refs/heads/master.zip

Also on Packagist as bluecadet/timber-fractal-paths:

composer require bluecadet/timber-fractal-paths

From the readme

timber-fractal-paths Custom loader that allows Fractal paths to reroute to Fractal files. Fractal Your Fractal build should use a twig engine. You can then call your fractal patterns as is typical of Fractal: The loader will attempt to load a .twig file matching the parent folders name, which is the last item in the include path. This assumes that you have the following file structure (given the above example): @patterns is the default namespace used in this plugin, but @components is typical for Fractal. Configuration Namespace defaults to '@patterns'. Define FRACTALHANDLE in your theme to change the handle (DO NOT use @ in the definition, i.e. 'patterns' not '@patterns'). Path defaults to 'THEMEPATH/fractal/patterns' (getstylesheetdirectory() . '/fractal/patterns'). Define FRACTALPATH in your theme to change the handle (DO NOT use @ in the definition, i.e. 'patterns' not '@patterns'). Want to add other Custom Loaders? The timberfractalpaths/loaders provides and array of loaders before they are pushed into the custom chain loader. Create your loader, add it to the array, and return it. The scaffolding of this plugin came from weareindi/timber-custom-loader

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
3.0.0Jul 14, 2023
2.0.1Jul 14, 2023
2.0.0Oct 25, 2022
1.0.0Sep 20, 2019