Closed Yeti-or closed 6 years ago
Because in case id: { elem: 'key' }
BEMHTML takes {elem: 'key' }
as an input bemjson and starts templating.
1) https://github.com/bem/bem-xjst/blob/master/lib/bemhtml/index.js#L175
2) https://github.com/bem/bem-xjst/blob/master/lib/bemxjst/index.js#L314
If I’ll change this behaviour as you wish (extend {elem: 'key'}
with block
and elem
from context) it may harm backward capability.
If you don’t mind I close this issue.
https://goo.gl/jHqyY4
In bemjson attrs values we could use other entities:
but elems don't behave as in other modes (content, mix)