Skip to content

Commit

Permalink
Merge pull request #9 from ampedweb/patch-1
Browse files Browse the repository at this point in the history
Update atandalone Twig install instructions in index.md
  • Loading branch information
ker0x authored Aug 3, 2024
2 parents 9477b1c + 5c32d4f commit 114c1d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ If you use Twig as standalone, then you need to add the extension manually
$extension = new TalesFromADev\Twig\Extra\Tailwind\TailwindExtension();

$twig = new \Twig\Environment($loader);

$twig->addRuntimeLoader(new FactoryRuntimeLoader([
TailwindRuntime::class => function () { return new TailwindRuntime; },
]));

$twig->addExtension($extension);
```

Expand Down

0 comments on commit 114c1d5

Please sign in to comment.