Last active
December 21, 2015 18:29
-
-
Save jnf/6347435 to your computer and use it in GitHub Desktop.
Strange middleman rendering.
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
helpers do | |
def icon_tag(icon, copy) | |
tag(:i, class: icon) + ' ' + copy | |
end | |
end |
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
<ul> | |
<li><%= tag(:i, class: 'icon-plus-sign') %></li> | |
<li><%= tag(:i, class: 'icon-bar-chart') %></li> | |
<li><%= tag(:i, class: 'icon-file') %></li> | |
</ul> |
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
<ul> | |
<li> | |
<i class="icon-plus-sign"></i> | |
</li> | |
<i class="icon-plus-sign"> | |
<li> | |
<i class="icon-bar-chart"></i> | |
</li> | |
<i class="icon-bar-chart"> | |
<li> | |
<i class="icon-file"></i> | |
</li> | |
<i class="icon-file"></i></i></i> | |
</ul> |
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
ul | |
li= icon_tag 'icon-plus-sign', 'Calculator' | |
li= icon_tag 'icon-bar-chart', 'Formulas' | |
li= icon_tag 'icon-file', 'Math words' |
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
<ul> | |
<li><i class="icon-plus-sign"> Calculator</i></li> | |
<li><i class="icon-plus-sign"><i class="icon-bar-chart"> Formulas</i></i></li> | |
<li><i class="icon-plus-sign"><i class="icon-bar-chart"><i class="icon-file"> Math words</i></i></i></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment