module Hippo::LiquidFilters
Public Instance Methods
indent(text, depth = 2)
click to toggle source
# File lib/hippo/liquid_filters.rb, line 5 def indent(text, depth = 2) text.split("\n").map.each_with_index do |p, i| i == 0 ? p : ' ' * depth + p end.join("\n") end
multiline(text)
click to toggle source
# File lib/hippo/liquid_filters.rb, line 11 def multiline(text) text.inspect end