Skip to content

Commit 8c18db4

Browse files
authored
Document twig peer dependency
1 parent 5121a7d commit 8c18db4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pug template engine for Symfony
88

99
## Install
1010

11-
In the root directory of your Symfony project, open a terminal and enter:
11+
In the root directory of your Symfony project, open a terminal and enter.
1212
```shell
1313
composer require pug-php/pug-symfony
1414
```
@@ -23,6 +23,14 @@ a manual installation:
2323
- [Symfony 4 manual installation](https://github.com/pug-php/pug-symfony/wiki/Symfony-4-manual-installation)
2424
- [Symfony 2 and 3 manual installation](https://github.com/pug-php/pug-symfony/wiki/Symfony-2-and-3-manual-installation)
2525

26+
If you installed Symfony in a custom way, you might be warned about
27+
missing "templating.engine.twig" service. We highly recommend you to
28+
install it (`composer require twig/twig`) to get Twig functions such
29+
as `css_url`, `form_start` and so on available from Pug templates.
30+
31+
If you're sure you don't need Twig utils, you can simply remove
32+
"templating.engine.twig" from your "templating" services settings.
33+
2634
## Configure
2735

2836
You can set pug options by accessing the container (from controller or from the kernel) in Symfony.

0 commit comments

Comments
 (0)