Closed a-x- closed 7 years ago
/сс @Yeti-or
Короче, это BlockStatement
и Label
. Это не баг, но можно сделать фичу, чтобы можно было без внешних скобок писать bemjson.
no it's seems that playground wraps code in () so it' bemjson not Label just bad example Problem from title still with us
Online demo: https://bem.github.io/bem-xjst
Source code of online demo: https://github.com/bem/bem-xjst/tree/gh-pages
The problem: ignores bemjson started not from 1th line
Possible solution: trim BEMJSON before
BEMHTML.apply(BEMJSON)
.