Sha256: d3fd40ad830be6b04aee65f73440905a5e7263b5dfa0a4296c6cc08a61c6578e

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

require 'jekyll/site'
require_relative '../jekyll_pages_api/generator'

module Jekyll
  class Site
    # monkey-patch to make an after_render hook
    alias_method :orig_render, :render
    def render
      orig_render
      after_render
    end

    def after_render
      JekyllPagesApi::Generator.new(self).generate
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll_pages_api-0.1.6 lib/jekyll/site.rb
jekyll_pages_api-0.1.5 lib/jekyll/site.rb
jekyll_pages_api-0.1.4 lib/jekyll/site.rb
jekyll_pages_api-0.1.3 lib/jekyll/site.rb
jekyll_pages_api-0.1.2 lib/jekyll/site.rb
jekyll_pages_api-0.1.1 lib/jekyll/site.rb
jekyll_pages_api-0.1.0 lib/jekyll/site.rb