Add example to split filter.

This commit is contained in:
7rans
2012-06-11 10:32:12 -04:00
committed by Jason Normore
parent 5ac91e0837
commit 40cc799f3d
+4
View File
@@ -54,6 +54,10 @@ module Liquid
end end
# Split input string into an array of substrings separated by given pattern. # Split input string into an array of substrings separated by given pattern.
#
# Example:
# <div class="summary">{{ post | split '//' | first }}</div>
#
def split(input, pattern) def split(input, pattern)
input.split(pattern) input.split(pattern)
end end