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

Playground bug: ignores bemjson started not from 1th line #320

Closed a-x- closed 7 years ago

a-x- commented 8 years ago

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

2016-07-28_20-18-58 2016-07-28_20-19-08

Possible solution: trim BEMJSON before BEMHTML.apply(BEMJSON).

a-x- commented 8 years ago

/сс @Yeti-or

qfox commented 8 years ago

Короче, это BlockStatement и Label. Это не баг, но можно сделать фичу, чтобы можно было без внешних скобок писать bemjson.

Yeti-or commented 8 years ago

no it's seems that playground wraps code in () so it' bemjson not Label just bad example Problem from title still with us

a-x- commented 8 years ago

2016-07-29_00-20-23