patternengine-php-twig
patternengine-php-twig copied to clipboard
Twig-based PatternEngine for Pattern Lab.
I used to have these packages: ``` "@pattern-lab/core": "^5.15.0", "@pattern-lab/engine-twig-php": "^5.15.0", "@pattern-lab/uikit-workshop": "^5.15.0", ``` And my `patternlab-config.json` file was created this way: ``` "engines": { "twig": { "namespaces": [ {...
Fixing my own commit from January 2016, when I did not know there was a `patternSourceDir` config option.
Hi, Thanks for all the work that's gone into this project! I was hoping to use [the shorthand include syntax](https://patternlab.io/docs/pattern-including.html) outside of Pattern Lab (in Drupal as it happens). I...
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:...
* this is using aleksip/plugin-data-transform for [attributes](https://github.com/aleksip/plugin-data-transform#create-drupal-attribute-objects) This is working fine in a pattern: `test` `test` But if this is inside a macro, I get: `test` I can work around...
I was running into problems where the terminal told me: Fatal error: Call to undefined method __TwigTemplate_ .... After some research I found this issue has been allready described there:...
Patternengine PHP Twig still uses Twig < 2. In my case, I create reusable component libraries with Patternlab. Those can be used in CMS out of the box. The problem...
I couldn't find the equivalent of `php core/autoReloadServer.php` functionality for this version.
When setting Pattern Lab to watch for changes in Terminal, OS Sierra, the following is output: `php core/console --watch` `configuring pattern lab...` `spawning the watch process...` And then nothing happens....
I'm not sure if this is an issue with the twig extension or the core Patternlab library, but using 'longhand' includes with full paths (i.e. not the fuzzy shorthand syntax)...