Search by

backdrop-dev / template-hierarchy

techkodeninja

A smarter and flexible template hierarchy.

Package info

github.com/backdrop-dev/template-hierarchy

pkg:composer/backdrop-dev/template-hierarchy

Statistics

Installs: 417

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-17 19:49 UTC

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