backdrop-dev / template-hierarchy
A smarter and flexible template hierarchy.
Package info
github.com/backdrop-dev/template-hierarchy
pkg:composer/backdrop-dev/template-hierarchy
v1.0.0
2026-11-17 19:49 UTC
Requires
- php: >=7.4
- backdrop-dev/framework: ^2.0
- backdrop-dev/template-helpers: ^1.0.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-17 19:49:50 UTC
README
A smarter and flexible template hierarchy
Requirements
Registering and Booting
Add the provider before booting the Backdrop application.
$theme->provider( Backdrop\Template\Hierarchy\Provider::class );
Then get the template hierarchy for the current page view, without the .php extension, with
Backdrop\Template\Hierarchy\hierarchy();
Templates are looked up inside the theme's views folder (resources/views by default, see backdrop-dev/template-helpers).
Copyright and Licenses
This project is licensed under the GNU GPL, version 2 or later.
2019–2023 © Benjamin Lu