Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Liquid::StandardFilters (#571)
- Loading branch information
1 parent
01d8840
commit fab4465
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module StandardFilters | ||
def concat(_input) | ||
raise StandardError, "Liquid#concat filter is disabled" | ||
end | ||
|
||
def compact(_input) | ||
raise StandardError, "Liquid#compact filter is disabled" | ||
end | ||
|
||
def join(_input) | ||
raise StandardError, "Liquid#join filter is disabled" | ||
end | ||
|
||
def prepend(_input, _string) | ||
raise StandardError, "Liquid#prepend filter is disabled" | ||
end | ||
|
||
def remove(_input) | ||
raise StandardError, "Liquid#remove filter is disabled" | ||
end | ||
|
||
def remove_first(_input) | ||
raise StandardError, "Liquid#remove_first filter is disabled" | ||
end | ||
|
||
def replace(_input) | ||
raise StandardError, "Liquid#replace filter is disabled" | ||
end | ||
|
||
def replace_first(_input) | ||
raise StandardError, "Liquid#replace_first filter is disabled" | ||
end | ||
|
||
def split(_input) | ||
raise StandardError, "Liquid#split filter is disabled" | ||
end | ||
end | ||
|
||
Liquid::Template.register_filter(StandardFilters) |