Skip to content

Stack for Craft CMS

Organize your Twig templates with namespaces, resolved per site, group or environment.
Terminal window
composer require somehow-digital/craft-stack
php craft plugin/install stack

Dynamic resolution

Include a template by its plain path and let the first matching namespace win.

Static resolution

Prefix a path with a namespace handle to load a template from one specific namespace.

Object templates

Build handles and paths from the current site, site group or your own context.