{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-core/issues/896","labels_url":"https://api.github.com/repos/bem/bem-core/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-core/issues/896/comments","events_url":"https://api.github.com/repos/bem/bem-core/issues/896/events","html_url":"https://github.com/bem/bem-core/issues/896","id":59821955,"number":896,"title":"Feedback for \"Быстрый старт по BEMHTML\"","user":{"login":"raining","id":886404,"avatar_url":"https://avatars.githubusercontent.com/u/886404?v=3","gravatar_id":"","url":"https://api.github.com/users/raining","html_url":"https://github.com/raining","followers_url":"https://api.github.com/users/raining/followers","following_url":"https://api.github.com/users/raining/following{/other_user}","gists_url":"https://api.github.com/users/raining/gists{/gist_id}","starred_url":"https://api.github.com/users/raining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raining/subscriptions","organizations_url":"https://api.github.com/users/raining/orgs","repos_url":"https://api.github.com/users/raining/repos","events_url":"https://api.github.com/users/raining/events{/privacy}","received_events_url":"https://api.github.com/users/raining/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T16:25:59Z","updated_at":"2015-03-04T16:51:48Z","closed_at":null,"body":"Напишем шаблон для блока hello в файле desktop.blocks/hello/hello.bemhtml:\r\nhttps://ru.bem.info/technology/bemhtml/v2/intro/#Шаг-4-Написать-шаблон-приветствие-по-образцу\r\n\r\n```javascript\r\nblock('hello').content(function() {\r\n    return ['Hello, ', this.ctx.name, '!'];\r\n});\r\n```\r\n Делаю все как написано в этой статье, по порядку, и после выполнения данного блока вываливается\r\n\r\n`AssertionError: mode literal predicates can't have arguments\r\n   at Compiler.getBinop (/home/rw/projects/learning-bemhtml/node_modules/enb-bemxjst/node_modules/bem-xjst/lib/bemhtml/compiler.js:217:12)\r\n   ....`\r\n\r\nИ модифицированный дальше пример с передачей не строки, а массива тоже валится с такой же ошибкой. Что я делаю не так?"},"comment":{"url":"https://api.github.com/repos/bem/bem-core/issues/comments/77196062","html_url":"https://github.com/bem/bem-core/issues/896#issuecomment-77196062","issue_url":"https://api.github.com/repos/bem/bem-core/issues/896","id":77196062,"user":{"login":"raining","id":886404,"avatar_url":"https://avatars.githubusercontent.com/u/886404?v=3","gravatar_id":"","url":"https://api.github.com/users/raining","html_url":"https://github.com/raining","followers_url":"https://api.github.com/users/raining/followers","following_url":"https://api.github.com/users/raining/following{/other_user}","gists_url":"https://api.github.com/users/raining/gists{/gist_id}","starred_url":"https://api.github.com/users/raining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raining/subscriptions","organizations_url":"https://api.github.com/users/raining/orgs","repos_url":"https://api.github.com/users/raining/repos","events_url":"https://api.github.com/users/raining/events{/privacy}","received_events_url":"https://api.github.com/users/raining/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T16:51:48Z","updated_at":"2015-03-04T16:51:48Z","body":"Ответ - в файле ошибка в синтаксисе примера - мода content не принимает аргументов, нужно писать не \r\n```javascript\r\ncontent(function(){...})\r\n```  \r\nа \r\n```javascript\r\ncontent()function(){...}\r\n```"}}