knapsack-cloud / twig-renderer

Render templates using Twig PHP, via this Node JS renderer.
11 stars 10 forks source link

Can this package be used as a drop in replacement? #124

Closed lquessenberry closed 1 month ago

lquessenberry commented 11 months ago

I have been working on a project that uses Patternlab PHP. Unfortunately that has been archived for support. I am wondering if this renderer will work better. Has anyone tried this?

hadl commented 11 months ago

Drop in replacement? No. As far as i know Patternlab PHP uses mustache templates and this is the for Twig-Renderer via Node.

So if you switch to Twig-Templates in your Patternlab then you should be good to go with a fresh installation of the current version of Patternlab and "engine-twig-php". Keeping the mustache templates you should go with "engine-mustache".