Sha256: ea6374a62a5947dfbcfc6f0f82835d82d4f6656737a2bba475618dd52df2c238

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

gemoji
======

Emoji images and names. See the LICENSE for copyright information.


Installation
============

Install and require `gemoji` or add it to your Gemfile.


Example Rails Helper
====================

```ruby
module EmojiHelper
 def emojify(content)
    h(content).to_str.gsub(/:([a-z0-9\+\-_]+):/) do |match|
      if Emoji.names.include?($1)
        '<img alt="' + $1 + '" height="20" src="' + asset_path("emoji/#{$1}.png") + '" style="vertical-align:middle" width="20" />'
      else
        match
      end
    end.html_safe if content.present?
  end
end
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemoji-1.0.0 README.md