How to Check the Syntax of Your Twig TemplatesΒΆ
You can check for syntax errors in Twig templates using the lint:twig
console command:
1 2 3 4 5 | # You can check by filename:
$ php bin/console lint:twig templates/article/recent_list.html.twig
# or by directory:
$ php bin/console lint:twig templates/
|