Skip to content

Commit

Permalink
Update README.md with default environment (#1879)
Browse files Browse the repository at this point in the history
Smaller projects, especially when upgrading from earlier versions, may not need different environment scopes, so just adding to the docs.
  • Loading branch information
benstein authored Jan 10, 2025
1 parent b4667ad commit a5b91e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Liquid::Template.parse(<<~LIQUID, environment: email_environment)
LIQUID
```

By using Environments, you ensure that custom tags and filters are only available in the contexts where they are needed, making your Liquid templates more robust and easier to manage.
By using Environments, you ensure that custom tags and filters are only available in the contexts where they are needed, making your Liquid templates more robust and easier to manage. For smaller projects, a global environment is available via `Liquid::Environment.default`.

### Error Modes

Expand Down

0 comments on commit a5b91e8

Please sign in to comment.