Home > remo

remo

Remo is a project mainly written in Ruby, based on the MIT license.

Ruby Emoticons Parser

rEmo - ruby emoticons parser

rEmo transforms ASCII-emoticons to HTML.

Install

gem install remo

Usage

First you need to copy the themes in your project, for example, in irb:

Remo.copy!('public/images/emoticons')

It will copy the themes in pwd/public/images/emoticons/ ...

And, parse :

Remo.new(string).to_html

See the rdoc for advanced usage.

Themes

Two themes are bundled into rEmo : simplesmileys and skype. You can preview the themes on the homepage.

A theme is a YAML file of regexps->image name. You can create one, but it's not recommended for your mental health (regexps sucks!).