-
Какие причины могут быть для того, чтобы блок не инициализировался?
В bemhtml указал `block('name').js()(true);`, добавился класс `i-bem` и атрибут `data-bem`, но вот класса `name_js_inited` нет и со…
-
``` js
bemhtml.compile(function() {
block('b1').js()({ blah: 123 });
block('b2').js()({ ololo: 'trololo' });
});
bemhtml.apply({
block: 'b1',
js: { zzzz: 555 },
mix: { block: 'b2…
-
Не понял, как в bemhtml работает маска `*` для элементов (в соотв. с [синтаксисом шаблонов](https://ru.bem.info/platform/bem-xjst/templates-syntax/#elem): "_...В качестве name можно использовать '*'..…
-
Related to https://github.com/bem/bem-components-dist/issues/6
-
```js
require('bem-xjst').bemhtml.compile('')
/*
{ apply: [Function: apply],
compile: [Function: compile],
BEMContext: { [Function: ContextChild] super_: [Function: Context] } }
*/
require(…
-
Где-то попадалась статья (или пост), не могу сейчас найти.
Задача: "подмешать" к основному блоку функционал другого.
В простейшем варианте (то, что заработало) получается во время инициализации перв…
-
`bemxjst` has some specifics not needed for `bemtree` runtime, like:
https://github.com/bem/bem-xjst/blob/v6.5.1/lib/bemxjst/tree.js#L354-L376
Not so much, but I wonder if it's possible to have bett…
Guria updated
7 years ago
-
### Input code or something about issue background
Ранее созданная ссылка (Share link) работает с ошибкой, не вставляется шаблон.
**Share link**
`https://goo.gl/w4vq0a`
**Data**
`https://mi…
ilyar updated
7 years ago
-
Для клиентских скриптов хотелось бы иметь легковесную версию для генерации HTML из BEMJSON без шаблонов и в виде отдельного пакета.
-
``` js
var BEMHTML = require('./bundle');
BEMHTML.compile(function() {
block('b1').def()(function() {
var r = applyNext({ 'ctx.blah': 'ololo' });
console.log(r);
return r…