bem / bem-xjst

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

Throw for wrong mode usage #78

Closed tadatuta closed 9 years ago

tadatuta commented 9 years ago

Now for template

block('b1')(
   mix({ elem: 'e1' }) // should be mix()({ elem: 'e1' })
);

nothing is happen and it's quite hard to understand what's wrong with the code.

indutny commented 9 years ago

Duplicate of https://github.com/bem/bem-xjst/issues/49