To use Pug as a template engine in Symfony 4, you need to follow those steps:
Add the templating.engine.pug service and pug in the engines setting:
services: templating.engine.pug: class: Pug\PugSymfonyEngine arguments: ["@kernel"] framework: templating: engines: ['pug', 'twig', 'php']
In order to use pug cli commands, you will also need to add Pug\PugSymfonyBundle\PugSymfonyBundle
to your app/AppKenel.php.
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Pug\PugSymfonyBundle\PugSymfonyBundle(), // ... other bundles
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4