rm erubi helper and update docs

This commit is contained in:
tkmru 2018-11-19 13:37:32 +09:00
parent 509b0c2098
commit faa09fd879
2 changed files with 1 additions and 5 deletions

View File

@ -682,10 +682,6 @@ module Sinatra
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."

View File

@ -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.