Why menuItemsis there undefined in the following code?
- var menuItems = ["Main","Contacts","About"]
mixin showItems(items)
ul
each item in items
li: a(href="#") #{item}
extend layout
block content
+showItems(menuItems)
I get the following error:
Unable to read property length undefined
source
share