Closed vithar closed 8 years ago
@vithar see https://github.com/bem/bem-xjst/issues/135
@tadatuta why not make multi-selectors like in CSS with ,
delimiters?
For elems:
block('regions')(
elems('region', 'currency')(
)
)
For blocks:
blocks('regions', 'smegions')(
)
+1
@vithar take a look at https://github.com/bem/bem-xjst/pull/165
Isn't enough elemMatch()
?
It is enough, thanks.
So, what about multi-selectors?
@blond that's too rear case to provide such sugar
@tadatuta, sugar affects performance?
it extends API without necessity
I have this code in my project:
As you can see, templates for
region
andcurrency
element the same. Can we implement support for multiple arguments inelem
(e.g. elem('region', 'currency')) or ability to pass array as argument (e.g. elem(['region', 'currency']))?