Layout is enabled when using partial #2128

Closed
krororo opened this Issue Mar 23, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@krororo
Contributor

krororo commented Mar 23, 2017

Do you want to request a feature or report a bug?

bug

What is the current behavior?

following example:

layouts/application.haml

!!!
%html
  #header
    application
  = yield

index.haml

index
%br
= partial 'foo'

_foo.haml

foo

renderd html is

<!DOCTYPE html>
<html>
  <div id='header'>
    application
  </div>
  index
  <br>
  <!DOCTYPE html>
  <html>
    <div id='header'>
      application
    </div>
    foo
  </html>
</html>

What is the expected behavior?

rendered

<!DOCTYPE html>
<html>
  <div id='header'>
    application
  </div>
  index
  <br>
  foo
</html>

Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?

Padrino 0.14.0

It works at padrino 0.13.3.3

@ujifgc ujifgc added the bug label Mar 23, 2017

@ujifgc ujifgc closed this in 2101589 Mar 23, 2017

@ujifgc

This comment has been minimized.

Show comment
Hide comment
@ujifgc

ujifgc Mar 23, 2017

Member

Thank you for your report!

Member

ujifgc commented Mar 23, 2017

Thank you for your report!

@krororo

This comment has been minimized.

Show comment
Hide comment
@krororo

krororo Mar 23, 2017

Contributor

Thank you!

Contributor

krororo commented Mar 23, 2017

Thank you!

adam12 added a commit to adam12/padrino-framework that referenced this issue Jun 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment