File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1312,6 +1312,23 @@ The variables will only be dumped if Twig's ``debug`` setting (in ``config.yml``
1312
1312
is ``true ``. By default this means that the variables will be dumped in the
1313
1313
``dev `` environment but not the ``prod `` environment.
1314
1314
1315
+ Syntax Checking
1316
+ ---------------
1317
+
1318
+ You can check for syntax errors in Twig templates using the ``twig:lint ``
1319
+ console command:
1320
+
1321
+ .. code-block :: bash
1322
+
1323
+ # You can check by filename:
1324
+ $ php app/console twig:lint src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig
1325
+
1326
+ # or by directory:
1327
+ $ php app/console twig:lint src/Acme/ArticleBundle/Resources/views
1328
+
1329
+ # or using the bundle name:
1330
+ $ php app/console twig:lint @AcmeArticleBundle
1331
+
1315
1332
Template Formats
1316
1333
----------------
1317
1334
You can’t perform that action at this time.
0 commit comments