Last active
December 28, 2015 23:09
-
-
Save vsyrovat/7577038 to your computer and use it in GitHub Desktop.
Template Principle, pt. 2
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
html | |
head | |
title | |
= yield(:title) | |
body | |
= block body | |
.footer | |
p.copyrignts '© Ololo team' | |
p.contacts 'Call us: +1 123 456 789' |
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
= extends 'base.haml' | |
= block body | |
p 'Some intro text for index page' | |
.main | |
= yield |
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
= extends 'base.haml' | |
= block body | |
.left | |
= yield(:left_block) | |
.right | |
= yield |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment