Sha256: 3e901eb9df454c9e74bd394e80295723d0692cc72a97c8f95a4d0f4ec8cc9bfe
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
# stdlib require "set" module Jekyll module AssetsPlugin module Patches module ContextPatch def site self.class.instance_variable_get :@site end def jekyll_assets @jekyll_assets ||= Set.new end def asset_path pathname, *args return "" if pathname.to_s.strip.empty? asset = resolve(pathname.to_s[/^[^#?]+/]).to_s jekyll_assets << asset (site.asset_path asset, *args) + (pathname.to_s[/[#?].+/] || '') rescue Sprockets::FileNotFound raise Environment::AssetNotFound, pathname end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-assets-0.7.6 | lib/jekyll/assets_plugin/patches/context_patch.rb |
jekyll-assets-0.7.5 | lib/jekyll/assets_plugin/patches/context_patch.rb |