Returns an array with all (in render ENV configured) theme-include-paths.


Syntax

themesInclude(?string $append = ''): array

Parameter

  • $append string|null
    Optional string to append to each returned include-theme-path.
    E.g. "styles/layout-base.css".


Return

Returns a numerical array built with following structure, per each configured (ENV) entry:

The order of theme-paths is of course the same, as defined in the render-environments configured order!

[<n>] = "@<namespace-label>/themes/<theme-label>/"  + [ <$append string>]


Examples


{# Build theme-path-array, with "/styles/_style...twig" attached and let twig-include the first found file! #}
{% set stylesJSONStr = include(hublify.themesInclude('/styles/_styles-email--theme-person.json.twig')) %}

{# ... and then to more with that result. #}
{% set r = hublify.styles_set(stylesJSONStr) %}