Search by

backdrop-dev / template-helpers

techkodeninja

Backdrop Template Helpers is set a helper functions for setting the path, locations, and filtering templates.

Package info

github.com/backdrop-dev/template-helpers

pkg:composer/backdrop-dev/template-helpers

Statistics

Installs: 417

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-11-17 19:43 UTC

This package is auto-updated.

Last update: 2026-11-17 19:44:22 UTC


README

Backdrop Template Helpers is set a helper functions for setting the path, locations, and filtering templates.

Requirements

Functions

All functions are in the Backdrop\Template\Helpers namespace.

  • path( $file = '' ): the relative path to the views folder (resources/views/ by default, filterable with backdrop/template/path).
  • locations(): the folders searched for templates, the active theme first and then the parent theme (filterable with backdrop/template/locations).
  • locate( $templates ): the full path to the first template found in locations(), or an empty string.
  • filter_templates( $templates ): prefixes a list of templates with the views path.

Copyright and License

This project is license under GNU GPL, version 2 or higher

2019-2026. Benjamin Lu