Skip to content

Commit

Permalink
fix(filters): Align behavior with shopify/liquid
Browse files Browse the repository at this point in the history
- Coerce values to strings
- Be looser about error handling
- Support `slice` on `Array`
- Add defaults to various filters
- Support windows line endings
- Note unsupported parameters

The string coercing makes this more allocation heavy.  This can be
mitigated by having `Value` use `Cow`.  In contrast a couple of
allocations were removed when doing string concatenation.
  • Loading branch information
epage committed May 7, 2017
1 parent 17d57c0 commit ebd7ebc
Showing 1 changed file with 299 additions and 196 deletions.
Loading

0 comments on commit ebd7ebc

Please sign in to comment.