ruby - how to coding nest tags in language slim -


i write below in language slim.

<li class="active"><a href="#">link <span class="sr-only">(current)</span></a></li>   

and

<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">dropdown <span class="caret"></span></a>   

i can embed inline html, interesting.

html:

<li class="active"><a href="#">link <span class="sr-only">(current)</span></a></li> 

slim:

li.active   href="#"      | link     span.sr-only (current) 

and html code:

<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">dropdown <span class="caret"></span></a>   

you can write slim:

a.dropdown-toggle aria-expanded="false" aria-haspopup="true" data-toggle="dropdown" href="#" role="button"    | dropdown   span.caret 

for reference:


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -