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

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -