Module: Roda::RodaPlugins::H

Defined in:
lib/roda/plugins/h.rb

Overview

The h plugin adds an h instance method that will HTML escape the input and return it.

The following example will return “<foo>” as the body.

plugin :h

route do |r|
  h('<foo>')
end

Defined Under Namespace

Modules: InstanceMethods