Module: Smithy::Liquid::Filters::AssetTag

Defined in:
lib/smithy/liquid/filters/asset_tag.rb

Instance Method Summary collapse

Instance Method Details

#image_path(input, *args) ⇒ Object



10
11
12
13
# File 'lib/smithy/liquid/filters/asset_tag.rb', line 10

def image_path(input, *args)
  image_options = args_to_options(args)
  controller.view_context.send(:image_path, input)
end

#image_tag(input, *args) ⇒ Object



5
6
7
8
# File 'lib/smithy/liquid/filters/asset_tag.rb', line 5

def image_tag(input, *args)
  image_options = args_to_options(args)
  controller.view_context.send(:image_tag, input, image_options)
end