Created
September 2, 2014 04:00
-
-
Save terenceponce/5b663f00db04206c0301 to your computer and use it in GitHub Desktop.
Gara / HAML comparison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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