Sha256: 46f39778de51b13a327b3e029af3aa9845f4d4ce471adf43a1ea4eb17c751d84

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require "middleman-core"
require "middleman-emojifire/converter"

module Middleman
  module Emojifire
    class Extension < ::Middleman::Extension
      def initialize(app, options_hash={}, &block)
        super
        require "gemoji"

        app.after_render do |content|
          ::Middleman::Emojifire::Converter.new(content).convert
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-emojifire-1.1.0 lib/middleman-emojifire/extension.rb