mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
rm erubi helper and update docs
This commit is contained in:
parent
509b0c2098
commit
faa09fd879
2 changed files with 1 additions and 5 deletions
|
@ -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."
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue