Sha256: 9d94d962e9a4ab100016ce478bc56c83ef94b87f92dc8e3ef0c6deae04673058
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 Bytes
Contents
module Middleman module AutomaticClowncar class TimestampResource < ::Middleman::Sitemap::Resource attr_accessor :output def initialize(store, path, origin, source_dir) @source_dir = source_dir @origin = origin super(store, path) end def template? false end def render(*args, &block) Utils.origin_mtime(@source_dir,@origin) end def source_file nil end # def request_path # @request_path # end def binary? false end def raw_data {} end def ignored? false end def metadata @local_metadata.dup end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-automatic-clowncar-0.0.4 | lib/middleman-automatic-clowncar/timestamp-resource.rb |
middleman-automatic-clowncar-0.0.3 | lib/middleman-automatic-clowncar/timestamp-resource.rb |