From a5b91e83ae116e7dc8210b21f795d0a5e9f89ec0 Mon Sep 17 00:00:00 2001 From: Benjamin Stein Date: Fri, 10 Jan 2025 11:28:46 -0800 Subject: [PATCH] Update README.md with default environment (#1879) Smaller projects, especially when upgrading from earlier versions, may not need different environment scopes, so just adding to the docs. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1df18ba7..3734a290f 100644 --- a/README.md +++ b/README.md @@ -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