Skip to content

Commit

Permalink
rm erubis helper and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmru committed Nov 19, 2018
1 parent 509b0c2 commit 6d817fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/sinatra/base.rb
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion sinatra-contrib/README.md
Expand Up @@ -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.
Expand Down

0 comments on commit 6d817fb

Please sign in to comment.