Sha256: b865d50c769007538f0b3ad19b1842a4a3ab479eae139177a5f9b3dc1bf626ee

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

module Blogue
  class Engine < ::Rails::Engine
    isolate_namespace Blogue

    initializer 'blogue.append_asset_path' do |app|
      app.config.assets.paths << (
        File.expand_path(Blogue.assets_path || "#{Blogue.posts_path}/assets")
      )

      app.config.assets.precompile += ['*.jpg', '*.png', '*.gif']
    end

    config.after_initialize do
      if defined?(Kramdown)
        Blogue.setup_kramdown_for_handling_md_files
        Blogue.use_rouge_codeblock_handler if defined?(Rouge)
        Blogue.set_checksums
        Blogue.set_blanket_checksum
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogue-0.1.0 lib/blogue/engine.rb
blogue-0.0.6 lib/blogue/engine.rb
blogue-0.0.5 lib/blogue/engine.rb