From faa09fd8799cc0f639a61ddd3055e5a4c247336f Mon Sep 17 00:00:00 2001 From: tkmru Date: Mon, 19 Nov 2018 13:37:32 +0900 Subject: [PATCH] rm erubi helper and update docs --- lib/sinatra/base.rb | 4 ---- sinatra-contrib/README.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 754f5a6b5e..eb94d3ed19 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -682,10 +682,6 @@ def erb(template, options = {}, locals = {}, &block) render(:erb, template, options, locals, &block) end - def erubi(template, options = {}, locals = {}, &block) - render(:erubi, template, options, locals, &block) - end - def erubis(template, options = {}, locals = {}) warn "Sinatra::Templates#erubis is deprecated and will be removed, use #erb instead.\n" \ "If you have Erubis installed, it will be used automatically." diff --git a/sinatra-contrib/README.md b/sinatra-contrib/README.md index 599cf93e33..1dbb518d10 100644 --- a/sinatra-contrib/README.md +++ b/sinatra-contrib/README.md @@ -22,7 +22,7 @@ Currently included: * [`sinatra/config_file`][sinatra-config-file]: Allows loading configuration from yaml files. -* [`sinatra/content_for`][sinatra-content-for]: Adds Rails-style `content_for` helpers to Haml, Erb, +* [`sinatra/content_for`][sinatra-content-for]: Adds Rails-style `content_for` helpers to Haml, Erb, Erubi, Erubis and Slim. * [`sinatra/cookies`][sinatra-cookies]: A `cookies` helper for reading and writing cookies.