Closed tadatuta closed 9 years ago
For BEMJSON { block: 'b1' } and template
{ block: 'b1' }
block('b1')( def()(function() { this.mods.m1 = 'v1'; return applyNext(); }), content()([ { block: 'b2' } ]) );
result is
<div class="b1 b1_m1_v1"><div class="b2 b2_m1_v1"></div></div>
but
<div class="b1 b1_m1_v1"><div class="b2"></div></div>
expected.
You have to use local. And yeah, it is this way at the moment.
local
I'll do benchmarks to see if creating mods for each block will be much slower than what we have now.
mods
Fixed in 3c7f239
No performance loss seen
For BEMJSON
{ block: 'b1' }
and templateresult is
but
expected.