Sha256: 1b9d82073806fa23018141f8c18b88657a77eecce1c06b5d17e98acc5abb60ee

Contents?: true

Size: 690 Bytes

Versions: 6

Compression:

Stored size: 690 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, source_dir.to_s)
      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

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
middleman-automatic-clowncar-4.0.5 lib/middleman-automatic-clowncar/timestamp-resource.rb
middleman-automatic-clowncar-4.0.4 lib/middleman-automatic-clowncar/timestamp-resource.rb
middleman-automatic-clowncar-4.0.3 lib/middleman-automatic-clowncar/timestamp-resource.rb
middleman-automatic-clowncar-4.0.2 lib/middleman-automatic-clowncar/timestamp-resource.rb
middleman-automatic-clowncar-4.0.1 lib/middleman-automatic-clowncar/timestamp-resource.rb
middleman-automatic-clowncar-4.0.0 lib/middleman-automatic-clowncar/timestamp-resource.rb