kizu / bemto

Smart mixins for writing BEM in Pug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow mixing of multiple blocks/elements on one tag

kizu opened this issue · comments

Proposed syntax:

+b.mediaList
  +b(['entity', '__item', 'media__'])

Note that the leading element delimiter marks the element and the ending one is marking the context for the nested entities. If there is no context marked, the first block would get it.

Was done using the usual syntax:

+b.mediaList
  +b.entity.__item.media__