{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/475","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/475/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/475/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/475","id":92922948,"number":475,"title":"Ленивая инициализация блока с модификатором","user":{"login":"kompolom","id":6213808,"avatar_url":"https://avatars.githubusercontent.com/u/6213808?v=3","gravatar_id":"","url":"https://api.github.com/users/kompolom","html_url":"https://github.com/kompolom","followers_url":"https://api.github.com/users/kompolom/followers","following_url":"https://api.github.com/users/kompolom/following{/other_user}","gists_url":"https://api.github.com/users/kompolom/gists{/gist_id}","starred_url":"https://api.github.com/users/kompolom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kompolom/subscriptions","organizations_url":"https://api.github.com/users/kompolom/orgs","repos_url":"https://api.github.com/users/kompolom/repos","events_url":"https://api.github.com/users/kompolom/events{/privacy}","received_events_url":"https://api.github.com/users/kompolom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/i-bem","name":"i-bem","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-03T19:03:17Z","updated_at":"2015-07-05T16:09:37Z","closed_at":null,"body":"Хочу сделать следующую штуку.\r\nБлок без модификатора - ленивая инициализация\r\nБлок с модификатором - автоматическая\r\n\r\nВозможен ли такой вариант?"},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/118635594","html_url":"https://github.com/bem/bem-forum-content-ru/issues/475#issuecomment-118635594","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/475","id":118635594,"user":{"login":"tadatuta","id":475746,"avatar_url":"https://avatars.githubusercontent.com/u/475746?v=3","gravatar_id":"","url":"https://api.github.com/users/tadatuta","html_url":"https://github.com/tadatuta","followers_url":"https://api.github.com/users/tadatuta/followers","following_url":"https://api.github.com/users/tadatuta/following{/other_user}","gists_url":"https://api.github.com/users/tadatuta/gists{/gist_id}","starred_url":"https://api.github.com/users/tadatuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadatuta/subscriptions","organizations_url":"https://api.github.com/users/tadatuta/orgs","repos_url":"https://api.github.com/users/tadatuta/repos","events_url":"https://api.github.com/users/tadatuta/events{/privacy}","received_events_url":"https://api.github.com/users/tadatuta/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T16:09:37Z","updated_at":"2015-07-05T16:09:37Z","body":"Смысл в том, что в [JS-параметрах](https://ru.bem.info/technology/i-bem/current/i-bem-js/#Синтаксис-передачи-параметров) блока можно передать специальное поле `live`, которое будет управлять инициализацией данного конкретного блока.\r\n\r\nС помощью шаблонов можно передать его всем блокам с нужным модификатором.\r\nДля BH будет так:\r\n```js\r\nmodule.exports = function(bh) {\r\n\r\n    bh.match('b1_m1_v1', function(ctx) {\r\n        ctx.js({ live: false })\r\n    });\r\n\r\n};\r\n```"}}