bem / bem/bem-xjst

Nested mixes are duplicated

Open
#549 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
117
Forks
48
PR merge metrics
No merged PRs in 30d

Description

```js
({
block: 'b1',
mix: 'b2'
})
```

```js
block('b2').addMix()('b3')
```

http://bem.github.io/bem-xjst/?version=8.9.1&engine=BEMHTML&template=block(%27b2%27).addMix()(%27b3%27)&bemjson=(%7B%0A%20%20%20%20block%3A%20%27b1%27%2C%0A%20%20%20%20mix%3A%20%27b2%27%0A%7D)

Contributor guide

Open the contributing guide

Research direction

Open the linked bem-xjst reproduction and run the shown BEMJSON with the BEMHTML template. Trace how the nested mix is represented and rendered; done means the b2 mix is emitted only once in the resulting output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.