phptypo3fluidpatternlab.io

Using Patternlab with TYPO3 Fluid


I would like to use Patternlab to build Fluid-Templates for TYPO3. I already found a standalone Version of the Fluid-Engine (didn't try it yet, though).

My question is, how do I implement the Fluid-Engine into Patternlab (instead of Mustache, for example)?

I reckon, that I need to download Patternlab for PHP and there the thin-version, so no other templating engine is already there?

PL would be awesome for TYPO3!

Thanks for any suggestions!


Solution

  • The missing link is a fluid integration for Pattern Lab. This integration would do the same job as pattern-lab/patternengine-twig does for twig and pattern-lab/patternengine-mustache for mustache.

    This integration doesn‘t exist yet AFAIK and needs to be written (could be named patternengine-fluid) and would then require typo3fluid/fluid. As I‘m not (yet) into Pattern Lab I can‘t tell you how complex this would get. Guessing from e.g. patternengine-twig which ships around 680 SLOC (PHP) it‘s not a too complex task.

    Once this part is available the rest is just following Modifying the Thin Edition

    Would be nice to reflect it here if you make the effort to code (or let code) such a solution!

    Regarding fluid standalone, it‘s this very package powering TYPO3 templates since version 8.0.