bem / bem-xjst

bem-xjst (eXtensible JavaScript Templates): declarative template engine for the browser and server
https://bem.github.io/bem-xjst
Other
115 stars 47 forks source link

no documentation about templating values inside attrs hash #423

Closed Yeti-or closed 6 years ago

Yeti-or commented 7 years ago

You could do this, but this is undocumented, and I couldn't find test for this API. So what about drop it??

{ 
    block: 'button', 
    attrs: {
        // this works
        name: {block: 'i-bem', elem: 'i18n', keyset: 'attach', key: 'button-text'},
    }
}
miripiruni commented 7 years ago

Why it’s important for you?

P.S. Look like we definitely need more information about this undocumented behaviour…

Yeti-or commented 7 years ago

@miripiruni It's important because it is undocumented =) but for me, because of this project: https://github.com/bem-sdk/bemjson-to-decl

miripiruni commented 6 years ago

Fixed: https://github.com/bem/bem-xjst/blob/master/docs/en/4-data.md#attrs