-
Очень удобно в bemhtml делается mix элемента на дочернем блоке:
``` js
block('block').elem('logo').def()(function(){
return applyCtx(
this.extend(this.ctx.content, {
mix: { block: t…
Guria updated
7 years ago
-
Кто каким пользуется? И у какого больше переспективы на существование, поддержку, развитие )))
давайте свои за и против))))
-
``` js
{
block: 'form-field',
type: 'input',
val: 'type something...',
label: 'test',
required: true
}
```
-
``` js
block('misspell').elem('link').def()(function() {
return applyCtx(this.extend(this.ctx, {
block: 'link',
elem: ''
}));
});
```
to
``` js
block('misspell').elem('link').def()(funct…
-
Кажется должно быть немного быстрей чем собирать строку а потом ее вставлять в dom.
Но даже если не будет прироста в скорости, почему бы не сделать, интересно же.
Пока не сел кодить, хотел бы с…
-
Когда мы скрещивали БЭМ и .NET в [прошлый раз](https://ru.bem.info/forum/1007/), на выходе получили зачатки библиотеки для bemhtml-шаблонизации в приложениях ASP.NET MVC. За прошедший месяц библиотека…
-
For avoid copy-paste of `[{ block: 'b1' }].concat(this.ctx.mix)` we can introduce two new helpers: for construct or convert to array with adding argument after and for inplace modification of `mix` fi…
-
https://goo.gl/6wUTNK
@veged @tadatuta @zxqfox `xjstOptions()` realy needed? Should we fix it or should we drop it?
-
Подскажите, как в шаблоне добавить к блоку модификатор. В `bh` было просто `ctx.mod('name', 'val')`
-
у нас есть несколько разделов сайта. Админка, профиль, публичная часть.
Сейчас собирается 3 merged бандла. При этом на публичной части много разных страниц. Хотелось бы иметь что то вроде core.js, co…