pattern-lab / patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
http://patternlab.io/
MIT License
43 stars 62 forks source link

allow for different pattern libraries #70

Open Haroenv opened 8 years ago

Haroenv commented 8 years ago

I'd think it'd be useful to have more templating libraries (liquid, erb ...). How would this be done? preferably a straight-forward way to create "plugins" that work with php/node versions.

dmolsen commented 8 years ago

@Haroenv -

This is already possible. Pattern Lab 2 introduced PatternEngines. I have a simple write-up of the Pattern Lab ecosystem and there are a number of PatternEngines for node and PHP respectively.

Each PatternEngine is implemented in a language- and port-specific way. This means that node can have a node-based Handlebars PatternEngine and PHP may not have any support for Handlebars. We're just limited to which template language libraries have been implemented for the respective languages and how they've been implemented.

If you have further questions please let me know.

Haroenv commented 8 years ago

Aha, I can try that out to find what exactly needs to be done. Thanks

dmolsen commented 8 years ago

If you're going to build a PHP PatternEngine please let me know and I can write some docs quickly.

On Jul 26, 2016, at 1:35 PM, Haroen Viaene notifications@github.com wrote:

Aha, I can try that out to find what exactly needs to be done. Thanks

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or mute the thread.