-
With `bemjson`:
``` js
{
block : 'block',
js : true,
content : {
elem : 'elem',
js : true
}
}
```
and `browser.js`:
``` js
BEMDOM.decl({ block : 'block', 'elem' : 'elem' }, {}, {
…
-
https://github.com/bem/bem-components/blob/v2/common.blocks/menu/menu.js#L34
https://github.com/bem/bem-components/blob/v2/common.blocks/menu/menu.js#L42
If `menu` block inited with tab focus `_onKeyD…
Guria updated
9 years ago
-
@veged suggested:
> давайте тогда сделаем специальные заголовки типа:
> - ## Пример
> - ## BEMJSON
> - ## JS
> - ## CSS
>
> под заголовками можно будет писать нормально `js для bemjson (вместо`bemjs…
-
Всем привет!
На прошедшей неделе совместно с проектом [LoftBlog](http://loftblog.ru/) мы проводили открытый вебинар по БЭМ, где в процессе знакомились с БЭМ-стеком и сверстали макет страницы Яндекс.…
-
Нам нужно что-нибудь, чтобы сравнивать пары bemjson / html.
-
Now, if I need to return empty value instead of block in some cases, I have to write some redundant code:
``` javascript
// old implementation using "blocks"
blocks['my-block'] = function(data) {
i…
-
We should create a special classes for mods, bemjson nodes, etc.
Mods:
```
class Mods implements Iterator {
protected $content = [];
// etc.
}
```
JsonNode (or Json, or Node):
```
class JsonNo…
-
There is a weak condition in dropdown_switcher_link and dropdown_switcher_button templates:
https://github.com/bem/bem-components/blob/v2/common.blocks/dropdown/_switcher/dropdown_switcher_link.bh.js#…
-
- Простейший bemjson:
```
([
{
block: 'page',
content: [
{ block: 'test', mods: { foo: 'bar'}, js: true}
]
}
]);
```
- блок рендерится в ``
- `page` из `bem-core` автоматом тяне…
Guria updated
9 years ago
-
Для шаблонов использующих `BEM.I18N` требуется сборка таргетов с учётом языка.
Добавляем опцию `langs` в конфиг:
``` js
tmplSpecs.configure({
destPath: 'tmpl-specs',
levels: ['blocks'],
…
blond updated
9 years ago