Skip to content

Releases: bem/bem-xjst

v7.6.0

02 Dec 12:10
Compare
Choose a tag to compare

Port from v8.4.0. New option unquotedAttrs. See docs.

Commits:

  • [7eff482a7b] - BEMHTML: support unquoted attributes (fix for #364) (miripiruni)

v4.4.1

12 Nov 12:50
Compare
Choose a tag to compare

Revert behaviour "applyNext() should return value from BEMJSON" to sync with v1.x/v2.x/v3.x.

Commits:

  • [771135db45] - Merge pull request #381 from bem/applyNext-issue-380 (Slava Oliyanchuk)
  • [e0f97185df] - Test added: applyNext() should not return value from BEMJSON. (miripiruni)
  • [281e12baba] - _Revert_ "apply(modeName) must return values from this.ctx if no other templates (port commit 9d230c5)" (miripiruni)

v7.5.0

09 Nov 12:57
Compare
Choose a tag to compare

Backport minor from v8.2.0.

With option omitOptionalEndTags template engine will ommit
optional end tags. The option is turn off by default.

You can find list of optional end tags in specifications: HTML4 and HTML5.

var bemxjst = require('bem-xjst');
var templates = bemxjst.bemhtml.compile(function() {
    // In this example we will add no templates.
    // Default behaviour is used for HTML rendering.
    }, {
        // Turn off optional end tags
        omitOptionalEndTags: true
    });

var bemjson = {
    tag: 'table',
    content: {
        tag: 'tr',
        content: [
            { tag: 'th', content: 'table header' },
            { tag: 'td', content: 'table cell' }
        ]
    }
};

var html = templates.apply(bemjson);

Result:

<table><tr><th>table header<td>table cell</table>

Commits:

  • [f0e8fc07cd] - BEMHTML: Omit optional closing tags (fix for #360) (miripiruni)

v8.3.1

20 Oct 12:26
Compare
Choose a tag to compare

2016-10-20 v8.3.1, @miripiruni

extend() mode fixed. Read documentation.

In documentation:
— description about this.extend(o1, o2) added
— spelling fixed
— description about production mode added

Commits:

  • [19c4789a05] - Docs: describe this.extend() fix for #355 (miripiruni)
  • [ff8ca15360] - Merge pull request #363 from bem/issue-180__extend (Slava Oliyanchuk)
  • [ab9d3cae90] - BEMXJST: extend() mode fix #180 (miripiruni)
  • [4263533c70] - docs: Fix type (Vladimir Grinenko)
  • [3f3169e87d] - Docs: production mode (miripiruni)
  • [6ad3d5c154] - Bench: bemjson files is not required (miripiruni)
  • [efa1d9a8c4] - Bench: template for v7.x added (miripiruni)
  • [53db045a94] - changelog updated (miripiruni)

v7.4.1

20 Oct 12:26
Compare
Choose a tag to compare

2016-10-20 v7.4.1, @miripiruni

extend() mode fixed. Read documentation.

Commits:

v8.3.0

11 Oct 12:45
Compare
Choose a tag to compare

v7.4.0

11 Oct 12:45
Compare
Choose a tag to compare

v6.7.0

11 Oct 12:46
Compare
Choose a tag to compare

v5.2.0

11 Oct 12:46
Compare
Choose a tag to compare

v8.2.0

11 Oct 12:46
Compare
Choose a tag to compare

With option omitOptionalEndTags template engine will ommit
optional end tags. The option is turn off by default.

You can find list of optional end tags in specifications: HTML4 and HTML5.

var bemxjst = require('bem-xjst');
var templates = bemxjst.bemhtml.compile(function() {
    // In this example we will add no templates.
    // Default behaviour is used for HTML rendering.
    }, {
        // Turn off optional end tags
        omitOptionalEndTags: true
    });

var bemjson = {
    tag: 'table',
    content: {
        tag: 'tr',
        content: [
            { tag: 'th', content: 'table header' },
            { tag: 'td', content: 'table cell' }
        ]
    }
};

var html = templates.apply(bemjson);

Result:

<table><tr><th>table header<td>table cell</table>

Commits:

  • [207b3733de] - Merge pull request #361 from bem/issue-360__optional-closing-tags (Slava Oliyanchuk)
  • [042dcb1385] - BEMHTML: Omit optional closing tags (fix for #360) (miripiruni)