-
- [x] implement forced elemMatch
- [x] throw when bem-xjst4 compatible flag `{elemMatch: false}`
- [x] add tests
-
How to reproduce:
```
git clone https://github.yandex-team.ru/sbmaxx/bemhtml-bug.git
cd bemhtml-bug
npm i
npm test
```
On first run i have: `[TypeError: Cannot set property 'onmousedown' of undefine…
-
Please refer https://github.com/bem/bem-forum-content-ru/issues/37 for more info.
-
blond updated
9 years ago
-
See also https://github.com/bem/bh/issues/125
cc @mishanga @veged
-
Guys, we've changed api of BEMTREE in 3.0 because I wanted to handle errors. I think, we should restore it back before official publication of 3.0.
Why?
- it's always better to don't break
- consis…
-
I think, instead of
``` js
'(function(g) {\n' +
' var __bem_xjst = function(exports' + modulesProvidedDeps + ') {\n' +
' ' + code + ';\n' +
' return exports;\n' +…
-
**Versions:**
- `Node.js@10.37`
- `bem-bl@2.9.0`
- `enb-xjst@1.2.0`
- `bem-bl-xjst@2.1.4`
**BEMHTML code:**
``` js
elem attach, content: [{
block: 'w-attach',
name: this.ctx.file.fullName,
…
blond updated
9 years ago
-
``` js
block('b1').def()(function() {
function a() {
return x;
}
var x = 1;
return a();
})
```
После компиляции:
``` js
function __$b1(__$ctx, __$ref) {
function a__$0() {
ret…
-
Поиграться можно тут
http://bem.github.io/bem-xjst/
Пара типов данных
```
({
block: 'block1'
});
```
или
```
({
block: 'block1',
mods: { a: 'b' }
});
```
Далее буду приводить по пар…