Skip to content

Herb Ruby Bindings

Herb is bundled and packaged up as a precompiled RubyGem and available to be installed from RubyGems.org.

More Language Bindings

Herb also has bindings for JavaScript/Node.js

Installation

Add the gem to your Gemfile:

ruby
gem "herb"

or use bundler to add the dependency to your project:

shell
bundle add herb

or add it to your gemspec when you want to use Herb in a gem:

ruby
spec.add_dependency "herb", "~> 0.1"

Getting Started

In your project require the gem:

ruby
require "herb"

You are now ready to parse HTML+ERB in Ruby.

Released under the MIT License.