Created
November 18, 2014 22:56
-
-
Save skwp/776bd6c4a713e738f3ec to your computer and use it in GitHub Desktop.
Sublayouts
This file contains 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
.sublayout | |
.this-is-a-partial | |
= yield # this will render the content inside the sublayout |
This file contains 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
= render layout: 'sublayout' do | |
.this-is-the-content | |
This will render inside the sublayout partial which will render inside the main layout |
This file contains 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 | |
.this-is-the-main-layout | |
= yield # This will render the rest of the content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment