Skip to content

Commit

Permalink
add template debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
JBlond committed Oct 8, 2021
1 parent 31cb844 commit 98badbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ $twigConfig = [

$twigLoader = new FilesystemLoader('./tpl/');
$twig = new Environment($twigLoader, $twigConfig);
// if you need {{ dump() }} in the twig templates add
//$twig->addExtension(new DebugExtension());
// and use Twig\Extension\DebugExtension; // at the top of the file

// this is for the filter |trans
$filter = new TwigFilter(
Expand Down

0 comments on commit 98badbb

Please sign in to comment.