-
Here's small test script:
``` js
var p = techs[tech];
console.time('require(' + tech + ') = ' + p);
techs[tech] = require(techs[tech]);
console.timeEnd('require(' + tech + ') = ' + p);
```
And the r…
-
There is new i18n code working with bem-core core.
Some of techs can be merged from it into current package
- [x] Support `i18n` for `bem-core` — #32, #33, #42
- [x] Support `bh` — #31, #46
- [x] Supp…
-
For BEMJSON `{ block: 'b1' }` and template
``` js
block('b1')(
tag()('span'), // can be any other mode
wrap()(function() {
return {
elem: 'wrap',
content: this…
-
test: https://github.com/bem/bem-xjst/commit/f1d1798562c185c2a49b71025ff79f480e126d8a
veged updated
9 years ago
-
This option gives a huge profit in the speed of the assembly of the project (for example, 15 seconds vs 60).
Source code passes a minimal compilation and `BEMHTML.apply()` work is not very slow.
blond updated
9 years ago
-
This snippet works fine:
``` js
match(function() { return this.ctx.side === 'left'; }).wrap()(function() {
return [this.ctx, {elem: 'box'}];
})
```
but with `bem-xjst@4.0.1` it's impossible to s…
-
- `enb-bem-i18n` — builds keysets and lang-js files
- `enb-xjst-i18n` — builds BEMHTML + BEMTREE files
- `enb-bemxjst-i18n` — builds BEMHTML + BEMTREE files
- `enb-bh-i18n` — builds BH files
blond updated
9 years ago
-
WARN: I'm not sure if it's a good idea!
`bem-xjst@1.x` understands that if the only argument for `apply()` is an object that means changes but not a mode. I suggest to support the same thing for `bem…
-
``` js
match(function() { return this.elemMods.interactive === 'yes'; })
```
with `bem-xjst 1.x` is ok even for elems without any modifiers and fails on `bem-xjst 2.x` with `TypeError: Cannot read pr…
-
See https://github.com/bem/bem-core/issues/1099
Now we extend the definition of the basic templates with `oninit`. The `BEMContext` is available from `context` argument.
``` js
oninit(function(expor…
blond updated
9 years ago