Sha256: 34d0c6df7402abfd82f65d20e5fa0625f255460c339dbeed397134fc9308338e

Contents?: true

Size: 159 Bytes

Versions: 8

Compression:

Stored size: 159 Bytes

Contents

module Liquid::DefaultFilter
  def default(input, default)
  	input.blank? ? default : input
  end
end

Liquid::Template.register_filter(Liquid::DefaultFilter)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smartkiosk-client-0.2.1 lib/liquid/default_filter.rb
smartkiosk-client-0.2 lib/liquid/default_filter.rb
smartkiosk-client-0.1.19 lib/liquid/default_filter.rb
smartkiosk-client-0.1.18 lib/liquid/default_filter.rb
smartkiosk-client-0.1.17 lib/liquid/default_filter.rb
smartkiosk-client-0.1.16 lib/liquid/default_filter.rb
smartkiosk-client-0.1.15 lib/liquid/default_filter.rb
smartkiosk-client-0.1.14 lib/liquid/default_filter.rb