module MiddlemanWebpacker::Helpers
Public Instance Methods
asset_pack_path(name, **options)
click to toggle source
# File lib/middleman-webpacker/helpers.rb, line 18 def asset_pack_path(name, **options) asset_path(Manifest.lookup(name), **options) end
image_pack_tag(name, **options)
click to toggle source
# File lib/middleman-webpacker/helpers.rb, line 14 def image_pack_tag(name, **options) image_tag(Manifest.lookup("#{extension_options.images_base_path}#{name}"), **options) end
javascript_pack_tag(name, **options)
click to toggle source
# File lib/middleman-webpacker/helpers.rb, line 10 def javascript_pack_tag(name, **options) javascript_include_tag(Manifest.lookup("#{extension_options.javascripts_base_path}#{name}.js"), **options) end
manifest_resource_path(name)
click to toggle source
# File lib/middleman-webpacker/helpers.rb, line 22 def manifest_resource_path(name) Manifest.lookup(name) end
stylesheet_pack_tag(name, **options)
click to toggle source
# File lib/middleman-webpacker/helpers.rb, line 6 def stylesheet_pack_tag(name, **options) stylesheet_link_tag(Manifest.lookup("#{extension_options.stylesheets_base_path}#{name}.css"), **options) end
Private Instance Methods
extension_options()
click to toggle source
# File lib/middleman-webpacker/helpers.rb, line 28 def extension_options app.extensions[:webpack].options end