mixin icon(iconName)
svg&attributes(attributes)
use(xlink:href='##{iconName}')
mixin menu(menu)
nav.menu
each item in menu
a(href='##{item[0]}').menu__item= item[0]
+icon(item[1]).menu__icon
mixin header()
header
.menu
+menu(
[
["Home", "menu-home"],
["About", "menu-user"],
["Contact", "menu-email"]
]
)
+header
не реагирует бред какой то.Это не бред, а ваше незнание основ js.
знаю что есть mb_substr, но не буду же я везде менять эту функцию, так?Ну, если не будете - mbstring.func_overload.
The + operator returns the right-hand array appended to the left-hand array; for keys that exist in both arrays, the elements from the left-hand array will be used, and the matching elements from the right-hand array will be ignored.www.php.net/manual/en/language.operators.array.php