Last active
November 29, 2015 20:33
-
-
Save alexbaumgertner/bfe4493a64ff17ace97d to your computer and use it in GitHub Desktop.
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
| // match `logo` block | |
| block('logo')( | |
| // define `content` | |
| content()(function() { | |
| return [ | |
| { | |
| block: 'icon', | |
| tag: 'i', | |
| url: '/logo.png', | |
| mix: [{ block: 'logo', elem: 'logo' }] | |
| }, | |
| { | |
| elem: 'text', | |
| tag: 'span', | |
| content: 'HTML Academy' | |
| } | |
| ]; | |
| }) | |
| ); |
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
| ({ | |
| block: 'logo' | |
| }); |
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
| <div class="logo"> | |
| <i class="icon logo__logo"></i> | |
| <span class="logo__text">HTML Academy</span> | |
| </div> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try it on http://bem.github.io/bem-xjst/