Skip to content

feat: add LaxFilters option for undefined filter handling#139

Merged
osteele merged 1 commit intomainfrom
fix-9-lax-filters
Feb 26, 2026
Merged

feat: add LaxFilters option for undefined filter handling#139
osteele merged 1 commit intomainfrom
fix-9-lax-filters

Conversation

@osteele
Copy link
Owner

@osteele osteele commented Feb 26, 2026

Summary

  • Add LaxFilters configuration option that causes undefined filters to silently pass through the input value
  • Default behavior unchanged (undefined filters error) for backward compatibility
  • Add Engine.LaxFilters() public API method
  • Add --lax-filters CLI flag

This matches Shopify Liquid's default behavior where undefined filters are silently ignored.

Fixes #9

Test plan

  • Test that default behavior still errors on undefined filters
  • Test that LaxFilters mode passes through values for undefined filters
  • Test that defined filters still work in LaxFilters mode
  • All existing tests pass

@osteele osteele merged commit c28fd86 into main Feb 26, 2026
8 checks passed
@osteele osteele deleted the fix-9-lax-filters branch February 26, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undefined filters should warn instead of error

1 participant