Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render without layout on "layout false" [#73] #87

Closed
wants to merge 1 commit into from
Closed

Render without layout on "layout false" [#73] #87

wants to merge 1 commit into from

Conversation

hughbien
Copy link
Contributor

Not sure if you'd want this feature, but it mimics Rail's disabling of layouts (as discussed by whitehat101 in #73). Example in controller.rb:

layout 'default_layout.html.haml'

before 'page.html.haml' do
  layout false # render content without layout
end

@whitehat101
Copy link
Contributor

I haven't tried it, but thanks for taking the time to implement this feature.

@hughbien hughbien closed this Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants