Skip to content

Special handling of Twig exists in Core #157

Open
@NamelessCoder

Description

@NamelessCoder

Hi Pattern-Lab folks,

I've created a Pattern Lab Fluid Edition - Fluid is the templating language of the TYPO3 and Neos CMS'es - and in that regard I came across a rather unfriendly implementation in your LineageHelper class.

It appears this class has special handling for parsing Twig lineages, which is a bit sad when you're coming to Pattern-Lab with an implementation for an additional template language and then find that you can't achieve the same level of integration because special respect was given to Twig.

In my humble opinion:

  • This kind of implementation must not be part of the core repository.
  • It belongs more in the patternengine associated with the template engine
  • This really needs an implementation for such "Helper" style utilities, for example we could be allowed to configure the desired helper class names in the composer configuration we ship with our pattern engines, and ship our own helpers.

In the case of lineages in particular, this becomes important, as different template engines "include" or "render" or "extend" files using different syntaxes - which you currently are unable to support because of this hidden pseudo-dependency between your core and twig pattern engine implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions