Sha256: ffa678a97f20b816530c358cde413c65c1121f5c99d80bbb290fad4f75b8404e
Contents?: true
Size: 730 Bytes
Versions: 1
Compression:
Stored size: 730 Bytes
Contents
require 'middleman-core' require 'middleman-somemoji/converter' module Middleman module Somemoji class Extension < ::Middleman::Extension option :provider, 'apple', %[Emoji provider (default is 'apple')] option :format, 'png', %[Emoji format (default is 'png')] option :emoji_class, 'emoji', %[<img> tag class (default is 'emoji')] option :emojis_dir, '/images/emoji', %[Emoji images directory path (default is '/images/emoji')] def initialize(app, options_hash={}, &block) super @options = options end def after_build(builder) ::Middleman::Somemoji::Converter.new(@options).convert(app) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-somemoji-0.2.0 | lib/middleman-somemoji/extension.rb |