Skip to content

Commit

Permalink
docs: Add Craft Closure support
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jul 1, 2024
1 parent b62dd43 commit 4ddb8d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Twig\Sandbox\SecurityNotAllowedFunctionError
Function "dump" is not allowed in "__string_template__b0120324b463b0e0d2c2618b7c5ce3ba" at line 1.
```

Additionally, if the [Craft Closure](https://github.com/nystudio107/craft-closure) package is installed, it will automatically be added to the sandbox for use in any of the Twig template rendering functions.

## Using Craft Twig Sandbox

In its simplest form, you can create a Twig Sandbox like so:
Expand Down

0 comments on commit 4ddb8d8

Please sign in to comment.