Sha256: f7dc285ff62fda389a92a9a6f0491002d06b60165d4ae21408a08bc976c16651

Contents?: true

Size: 228 Bytes

Versions: 28

Compression:

Stored size: 228 Bytes

Contents

module SmallCage
  class RelpathFilter

    def initialize(opts)
    end

    def after_rendering_filter(obj, str)
      relpath = "../" * (obj["dirs"].size - 1)
      return str.gsub(%r{="/}, "=\"#{relpath}")
    end

  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
smallcage-0.3.2 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.3.1 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.3.0 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.9 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.8 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.7 project/relpath/_smc/filters/relpath_filter.rb
bluemark-smallcage-0.1.3 project/relpath/_smc/filters/relpath_filter.rb
bluemark-smallcage-0.1.4 project/relpath/_smc/filters/relpath_filter.rb
bluemark-smallcage-0.1.5 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.6 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.5 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.4 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.3 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.2 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.1 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.2.0 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.1.9 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.1.8 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.1.7 project/relpath/_smc/filters/relpath_filter.rb
smallcage-0.1.6 project/relpath/_smc/filters/relpath_filter.rb