markdown 模式实验室中的Twig调试

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 模式实验室中的Twig调试相关的知识,希望对你有一定的参考价值。

In order to use `{{ dump(whatever) }}` in twig templates in Pattern Lab, you must enable twig debugging. Otherwise trying to use dump will blow up the `php .pattern-lab/core/console --generate` process. (If that happens when you're running it via gulp, it may fail silently :P)

Anyhow, to enable twig debugging, toggle `twigDebug` to `true` in /config/config.yml in the pattern lab app folder.

以上是关于markdown 模式实验室中的Twig调试的主要内容,如果未能解决你的问题,请参考以下文章