Sha256: 82b98e32450c95b8a7e3e11e2bcc5d49e08160cd59e254b4e4cd2f2232f18a1e

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 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)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blogue-0.0.4 lib/blogue/engine.rb