14

I often want to nest elements, such as the following navigation:

ul
  li
    a(href="#") link Name  
  li
    a(href="#") link Name 
  li
    a(href="#") link Name 

Is is possible to put li and a on the same line? Some syntax like li > a would be nice.

Andrei Botalov
  • 20,686
  • 11
  • 89
  • 123
wesbos
  • 25,839
  • 30
  • 106
  • 143

1 Answers1

16

you can do something like this I believe

ul
  li: a href="#" Link1
  li: a href="#" Link2

See Inline tags: http://rdoc.info/gems/slim/file/README.md#Inline_tags

wesbos
  • 25,839
  • 30
  • 106
  • 143
kristenmills
  • 1,227
  • 10
  • 14