Skip to content

Commit

Permalink
4.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Jan 22, 2016
1 parent b998469 commit a64ec24
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# BEM-XJST Changelog

## 2016-01-22, [v4.3.3](https://github.com/bem/bem-xjst/compare/v4.3.2...v4.3.3), @miripiruni
Should properly render attr values:
```js
// BEMJSON
{
tag: 'input',
attrs: {
name: undefined, // will not render at all
value: null, // will not render
disabled: false, // will not render too
disabled: true, // will render as attr without value: disabled
value: 0, // will render as you expect: value="0"
placeholder: '' // will render as is: placeholder=""
}
}
// Result:
'<input disabled value="0" placeholder=""/>'
```

Skip mix item if falsy:

```js
// BEMJSON
{
block: 'b1',
mix: [ null, '', false, undefined, 0, { block: 'b2' } ]
}
// Will render to:
'<div class="b1 b2"></div>'
```


Commits:
* [[`a48aeab5a6`](https://github.com/bem/bem-xjst/commit/a48aeab5a6)] - **BEMHTML**: should properly render attr values (miripiruni)
* [[`e8e468dce7`](https://github.com/bem/bem-xjst/commit/e8e468dce7)] - **BEMHTML**: skip mix item if falsy (miripiruni)

## 2016-01-19, [v4.3.2](https://github.com/bem/bem-xjst/compare/v4.3.1...v4.3.2), @miripiruni
From this moment we have intelligible changelog. Hooray!

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bem-xjst",
"version": "4.3.2",
"version": "4.3.3",
"main": "lib/bemhtml.js",
"bin": {
"bem-xjst": "bin/bem-xjst"
Expand Down

0 comments on commit a64ec24

Please sign in to comment.