Skip to content

Commit

Permalink
changelog updated
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Oct 10, 2016
1 parent 7f29086 commit 84195f3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# BEM-XJST Changelog

# 2016-10-10 [v7.4.0](https://github.com/bem/bem-xjst/compare/v7.3.1...v7.4.0), @miripiruni

New option `production`. When it set to `true` bem-xjst will render bemjson even if one template contains error.

Example:
```js
var template = bemxjst.compile(function() {
block('b1').attrs()(function() {
var attrs = applyNext();
attrs.undef.foo = 'bar';
return attrs;
});
}, { production: true });
var html = template.apply({ block: 'page', content: { block: 'b1' } });
```
`html` will equals `<div class="page"></div>`.

Also in production mode bem-xjst will produce error messages to STDERR.

```bash
$node index.js 1> stdout.txt 2> stderr.txt

$ cat stdout.txt
<div class="page"></div>

$ cat stderr.txt
BEMXJST ERROR: cannot render block b1, elem undefined, mods {}, elemMods {} [TypeError: Cannot read property 'undef' of undefined]
```

Commits:
* [[`7f290862e5`](https://github.com/bem/bem-xjst/commit/7f290862e5)] - **BEMXJST**: production option (fix for #298) (miripiruni)

# 2016-09-22 [v7.3.1](https://github.com/bem/bem-xjst/compare/v7.3.0...v7.3.1), @miripiruni

New runtime lint cases:
Expand Down

0 comments on commit 84195f3

Please sign in to comment.