From b1eded99869235973f59353e01de02a59e58c4bf Mon Sep 17 00:00:00 2001 From: Benjamin Stein Date: Mon, 23 Dec 2024 16:56:48 -0800 Subject: [PATCH] Update README.md with default environment 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