-
- [x] `assertHasBlock` assert that every template has sub-predicate matching `block`
- [x] `assertNoThisElem` assert there're no predicates matching `this.elem` https://github.com/bem/bem-xjst/issues/…
-
``` js
while (i__$104 < l__$103) (function __$lb__$107() {
var __$r__$108;
var __$l0__$109 = __$ctx.ctx;
__$ctx.ctx = v__$102[i__$104++];
__$r__$108 = applyc(__$ctx…
-
We have different merging with bemjson behaviour for `content`, `tag`, `cls` and `attrs` modes.
`content` mode executes in anyway.
`tag` mode won't be executed if bemjson had `tag` property.
`attrs` …
-
see https://github.yandex-team.ru/lego/islands/pull/509
Compatibility with the latest bem-xjst should be available with relevant flag in the API
- [x] assert that every template has sub-predicate matc…
-
For BEMJSON `{ block: 'b1', elem: 'e1', mods: { m1: 'v1' } }` with default templates the result is
`` but it should be ``.
That'll break backward compatibility (with all previous implementations) so …
-
Does not seem to work in production mode of bem-xjst 1.0.0.
cc @veged
-
-
I think this is about wrong `b-page.bemhtml.js` template from islands — http://pastebin.com/JFVfYR1D
Paste it into http://bem.github.io/bem-xjst/ and use this bemjson:
``` js
([{
block: 'b-page'…
-
**Versions:**
- `enb-bemxjst`: `2.0.1`
- `bem-xjst`: `1.2.1`
**Template:**
``` js
elemMatch(function() { return this.elem.indexOf('inner') === 0; }).content()(function() {
return [
{ ele…
blond updated
9 years ago
-
Only `bem-xjst@1.x` in production mode affected.
``` js
// BEMJSON
{
block: 'test',
mods: {hello: 'world'}
}
// BEMHTML
block('test').content()(function() {
console.log(this.mods); // { …