Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nesting a text inside a tag in slim

How do I nest the 'Featured' text inside the a tag, given the span, the text, and the other span are siblings?

li
  a href="#" class="selected"
    span class="icon-before"
    Featured
    span class="icon-after"
like image 746
Marek Příhoda Avatar asked Nov 22 '12 14:11

Marek Příhoda


1 Answers

li
  a href="#" class="selected"
    span class="icon-before"
    | Featured
    span class="icon-after"

Gives:

<li><a class="selected" href="#"><span class="icon-before"></span>Featured<span class="icon-after"></span></a></li>
like image 137
jdoe Avatar answered Nov 15 '22 18:11

jdoe