-
### template
``` javascript
block('z-weather').elem('tile')(
match(function() { return !this.mods.layout; })
.tag()('td'),
match(function() { return this.isLast(); })
.mix()({…
-
For BEMJSON
``` js
{
block: 'b1',
elem: 'e1',
mix: { block: 'b2', js: true }
}
```
with default templates the result is
``` html
```
but
``` html
```
expected.
-
Get rid of `Tech module "bundles" at /bem-core/.bem/levels/bundles.js is using API V1.` and `Tech module "blocks" at /bem-core/.bem/levels/blocks.js is using API V1.`
veged updated
9 years ago
-
Is there still a way to do something like this:
for BEMJSON
``` js
{ block: 'b1' }
```
and template
``` js
block('b1')(
mode('custom')(function() {
console.log(this.ctx); // expected 't…
-
Default tempaltes with following BEMJSON
``` js
{
block: 'b1',
elem: 'e1',
mix: { block: 'b1' }
}
```
result with `` but `` expected.
cc @indutny
-
For BEMJSON `{ block: 'b1' }` and template
``` js
block('b1')(
def()(function() {
this.mods.m1 = 'v1';
return applyNext();
}),
content()([
{
block: 'b2…
-
Guess we should add something like this:
---
## `elemMatch()` and `this.elem` changes
There is no sense in `elemMatch()` since you can't test `this.elem` now. (More info?)
## `apply()` behaves sligh…
-
Пробую выполнить пример "Создаем свой проект на БЭМ", столкнулся с проблемой. Как исправить,- не понимаю. Прошу подсказать...
Error: Cannot find module 'enb-stylus/techs/css-stylus'
at Function.Mo…
-
Right now we write some thing like that:
``` js
exports.getTechs = function() {
return {
'bemjson.js' : join(PRJ_TECHS, 'bemjson.js.js'),
};
};
```
It will be useful if we can write …
veged updated
9 years ago
-
Здравствуйте. Имеется вот такой **bemjson**:
```
({
block: 'page-part',
content: [{
block: 'liquid-if',
conditions: [{
condition: 'blabla !=2',
content…