Guest User

Untitled

a guest
Oct 21st, 2019
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mixin breadcrumbs(items, last)
  2. .breadcrumb
  3. each item in items
  4. if (items.lenth === 1)
  5. span.breadcrumb__item= item
  6. else
  7. a(href="#" title=item).breadcrumb__item= item
  8. if last
  9. span.breadcrumb__item= last
  10. else
  11.  
  12. В PUG вызываем
  13. +breadcrumbs(['На главную','Финансовая грамотность'], 'О направлении')
RAW Paste Data