How Liquid Environments work
mainAn Environment is a scoped container that encapsulates custom tags, filters, and configurations. Instead of using global overrides, which can cause conflicts, you should use Environments to isolate functionality for different contexts (e.g., one for user-facing templates and one for email templates).
To use a custom environment, pass it as the environment: option to Liquid::Template.parse.
user_environment = Liquid::Environment.build do |environment|
environment.register_tag("renderobj", RenderObjTag)
end
Liquid::Template.parse(<<~LIQUID, environment: user_environment)
{% renderobj src: "path/to/model.obj" %}
LIQUID