Merge pull request #93 from trans/master

Split Filter Example
This commit is contained in:
Jonathan Rudenberg
2012-06-07 12:21:40 -07:00

View File

@@ -54,6 +54,10 @@ module Liquid
end
# Split input string into an array of substrings separated by given pattern.
#
# Example:
# <div class="summary">{{ post | split '//' | first }}</div>
#
def split(input, pattern)
input.split(pattern)
end