-
Правильно ли я понимаю, что BEMHTML это просто статичный шаблон, который нужно скомпилировать, а BEM-XJST это штука, позволяющая манипулировать BEMHTML-деревом? Что-то похожее на соотношение простого …
-
In base templates in bem-core, `this.ctx.mods` [is always created](https://github.com/bem/bem-core/blob/v2/common.blocks/i-bem/i-bem.bemtree#L135).
If it's cheap in performance POV, I think it should…
-
1. Move `istanbul` to `devDependencies`.
2. Update `dependencies` and `devDependencies`.
3. Update dependencies and libraries in [config.json](https://github.com/bem/generator-bem-stub/blob/master/app…
eGavr updated
8 years ago
-
Сейчас движком по умолчанию является `fullgen`, кажется уже можно всегда использовать `sort-group`
narqo updated
8 years ago
-
https://ru.bem.info/platform/bem-xjst/templates-syntax/#bemtree-1
> Движком BEMTREE используются только режимы def и content. Пользовательские режимы тоже могут быть использованы. Остальные режимы, о…
-
Guess like we
Also this reporting could be useful for modifiers set on block with 2 or more values: b_m_v1 v_m_v2 etc.
Like that: `{block: 'b', mods: {m: 'v1'}, mix: {mods: {m: 'v2'}}`
-
In lodash there is simple check before replacing:
``` js
var reUnescapedHtml = /[&"'`]/g,
reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
function escape(string) {
string = toStri…
-
Examples in the wild:
- `.serp-item_type_search.serp-item_type_market` https://yandex.ru/images/search?text=окна&comm=1
- `.suggest2-item__text_type_green-url.suggest2-item__text_type_url` https://yan…
-
Examples of bad block names:
`b__e`
`b_m_v`
`b_m`
Examples of bad element names:
`b__e__e`
`b__e_m_v`
`b__e_m`
-
`.mix()('b')` should set `b` as mix. Last call of `mix()` set new value which is not extended previous.
`.addMix()('newMix')` should extend value of previous mix value.
The same for `js()` and `attrs…