mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
parent
53fc4b513e
commit
87853c1431
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ describe Sinatra::ContentFor do
|
||||||
Tilt.prefer Tilt::ERBTemplate
|
Tilt.prefer Tilt::ERBTemplate
|
||||||
|
|
||||||
extend Forwardable
|
extend Forwardable
|
||||||
def_delegators :subject, :content_for, :yield_content
|
def_delegators :subject, :content_for, :clear_content_for, :yield_content
|
||||||
def render(engine, template)
|
def render(engine, template)
|
||||||
subject.send(:render, engine, template, :layout => false).gsub(/\s/, '')
|
subject.send(:render, engine, template, :layout => false).gsub(/\s/, '')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue