Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gara / HAML comparison
content_for :content do
main(class: 'main-container', role: 'main') {
render 'shared/express_blog/sidebar'
div(class: 'content-body') {
render 'shared/express_admin/messages'
if content_for?(:page_header)
div(class: 'page-header') {
div(class: 'row') {
div(class: 'small-12 columns') {
yield :page_header
}
}
}
end
div(class: 'row') {
div(class: 'small-12 columns') {
yield
}
}
}
}
end
render template: 'layouts/express_admin/admin'
- content_for :content do
%main.main-container{role: "main"}
= render 'shared/express_data/sidebar'
.content-body
#nav-js-alert
= render 'shared/express_admin/messages'
- if content_for?(:page_header)
.page-header
.row
.small-12.columns
= yield :page_header
.row
.small-12.columns
= yield
-# content_for :page_javascript do
-# content_for :page_css do
= render template: 'layouts/express_admin/admin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.