Project

rack-emoji

0.0
No commit activity in last 3 years
No release in over 3 years
Easily setup emoji for use with rack app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5

Runtime

~> 1.5
 Project Readme

Rack::Emoji

Quickly and easily use emoji with rack based application

Installation

Add this line to your application's Gemfile:

gem 'rack-emoji'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-emoji

Usage

To get started, need a copy of emoji images. Edit your Rakefile:

# Rakefile
load 'tasks/emoji.rake'
$ rake emoji # copied to your public directory

Edit your rack application file as follows:

require 'rack/emoji'

use Rack::Emoji, :width => 50, :height => 50

# ...

run app

Just use emoji name.

# your.html/erb/haml...
:dog:

Please see the example directory 🐶

Options

  • dir (for emoji image directory)
  • width
  • height
  • style