patternengine-php-twig icon indicating copy to clipboard operation
patternengine-php-twig copied to clipboard

Add twigStrictVariables option

Open renestalder opened this issue 6 years ago • 1 comments

Enable setting strict_variables mode in Twig which helps to minimize build errors when components and patterns are used withing a Twig 2.0 (#41) environment.

To use, one can set twigStrictVariables: true in the patternlab config.

renestalder avatar Feb 20 '19 13:02 renestalder

I hope you can take a quick look @EvanLovely. Not sure how many people still use that patternengine, assuming it's going to be obsolete with v3.0 of Patternlab. But until this happens, this is still used in a few of my client projects.

renestalder avatar Feb 20 '19 14:02 renestalder