class Jekyll::Prefetch

Constants

AssetPathPattern

Public Instance Methods

render(context) click to toggle source
Calls superclass method
# File lib/asset_pages/jekyll/plugins/prefetch.rb, line 26
def render(context)
  @context = context

  super.split("\n", -1).each do |line|
    options, line = AssetTag.parse_options(line)

    line.scan(AssetPathPattern) do |path|
      asset_path(path, options.merge(debug: false))
    end
  end

  ""
end