{"action":"created","comment":{"url":"https://api.github.com/repos/enb-bem/enb-bh/pulls/comments/32887944","id":32887944,"diff_hunk":"@@ -7,46 +7,184 @@ enb-bh\n [![Coverage Status](https://img.shields.io/coveralls/enb-bem/enb-bh.svg?style=flat)](https://coveralls.io/r/enb-bem/enb-bh?branch=master)\n [![Dependency Status](https://img.shields.io/david/enb-bem/enb-bh.svg?style=flat)](https://david-dm.org/enb-bem/enb-bh)\n \n-Поддержка [BH](https://github.com/enb-make/bh) для ENB.\n+Пакет предоставляет набор ENB-технологий для сборки [BH](https://github.com/enb-make/bh)-шаблонов.\n \n-Установка:\n-----------\n+Технологии:\n+\n+* [bh-bundle](#bh-bundle)\n+* [bh-commonjs](#bh-commonjs)\n+* [bemjson-to-html](#bemjson-to-html)\n+\n+**Требования к установке**\n+\n+Зависимость от пакета `enb` версии `0.12.0` или выше.\n+\n+## Установка:\n \n ```sh\n $ npm install --save-dev enb-bh\n ```\n+## Документация\n+\n+* [Шаблонизатор BH](https://ru.bem.info/technology/bh/v4.1.0/about/)\n \n-Технологии\n-----------\n+## Принципы работы пакета\n+\n+БЭМ-методология использует компонентный подход. Это предполагает разделение интерфейса на независимые блоки. Шаблоны к каждому блоку пишутся в отдельных файлах с расширением `bh.js` и хранятся в директориях блоков.\n+\n+Пакет `enb-bh` собирает отдельные `*bh.js`-файлы в один общий файл с помощью следующих технологий:\n \n * [bh-bundle](#bh-bundle)\n * [bh-commonjs](#bh-commonjs)\n-* [bemjson-to-html](#bemjson-to-html)\n \n-Для работы модуля требуется зависимость от пакета `enb` версии `0.12.0` или выше.\n+Обе технологии выполняют сборку BH-шаблонов, но разными способами.\n+\n+<a name=\"mimic\"></a>\n+### Мимикрия под BEMHTML\n+\n+БЭМ-платформа поддерживает два шаблонизатора: [BH](https://ru.bem.info/technology/bh/v4.1.0/about/) и [BEMHTML](https://ru.bem.info/technology/bemhtml/v2/rationale/). Результат работы обоих шаблонизаторов одинаковый. BH и BEMHTML решают одну и ту же задачу: декларативно описывают шаблоны, преобразующие [BEMJSON](https://ru.bem.info/technology/bemjson/current/bemjson/) в HTML.","path":"README.md","position":46,"original_position":46,"commit_id":"a6a1f1015abb518e018a7be07448e9423f189725","original_commit_id":"a6a1f1015abb518e018a7be07448e9423f189725","user":{"login":"blond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/blond","html_url":"https://github.com/blond","followers_url":"https://api.github.com/users/blond/followers","following_url":"https://api.github.com/users/blond/following{/other_user}","gists_url":"https://api.github.com/users/blond/gists{/gist_id}","starred_url":"https://api.github.com/users/blond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blond/subscriptions","organizations_url":"https://api.github.com/users/blond/orgs","repos_url":"https://api.github.com/users/blond/repos","events_url":"https://api.github.com/users/blond/events{/privacy}","received_events_url":"https://api.github.com/users/blond/received_events","type":"User","site_admin":false},"body":"> декларативно описывают шаблоны, преобразующие BEMJSON в HTML\r\n\r\nбяка какая-то :) Шаблоны описывают могут только разработчики.\r\n\r\nМожно сказать проще: «Преобразуют BEMJSON в HTML»","created_at":"2015-06-20T20:45:42Z","updated_at":"2015-06-20T20:45:42Z","html_url":"https://github.com/enb-bem/enb-bh/pull/95#discussion_r32887944","pull_request_url":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/enb-bem/enb-bh/pulls/comments/32887944"},"html":{"href":"https://github.com/enb-bem/enb-bh/pull/95#discussion_r32887944"},"pull_request":{"href":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95","id":38092116,"html_url":"https://github.com/enb-bem/enb-bh/pull/95","diff_url":"https://github.com/enb-bem/enb-bh/pull/95.diff","patch_url":"https://github.com/enb-bem/enb-bh/pull/95.patch","issue_url":"https://api.github.com/repos/enb-bem/enb-bh/issues/95","number":95,"state":"open","locked":false,"title":"enb-bh: new description","user":{"login":"innabelaya","id":6286656,"avatar_url":"https://avatars.githubusercontent.com/u/6286656?v=3","gravatar_id":"","url":"https://api.github.com/users/innabelaya","html_url":"https://github.com/innabelaya","followers_url":"https://api.github.com/users/innabelaya/followers","following_url":"https://api.github.com/users/innabelaya/following{/other_user}","gists_url":"https://api.github.com/users/innabelaya/gists{/gist_id}","starred_url":"https://api.github.com/users/innabelaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innabelaya/subscriptions","organizations_url":"https://api.github.com/users/innabelaya/orgs","repos_url":"https://api.github.com/users/innabelaya/repos","events_url":"https://api.github.com/users/innabelaya/events{/privacy}","received_events_url":"https://api.github.com/users/innabelaya/received_events","type":"User","site_admin":false},"body":"Resolved #62 ","created_at":"2015-06-19T09:48:33Z","updated_at":"2015-06-20T20:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcfb63b449ac9cf61a94485997255e7764dc7139","assignee":{"login":"innabelaya","id":6286656,"avatar_url":"https://avatars.githubusercontent.com/u/6286656?v=3","gravatar_id":"","url":"https://api.github.com/users/innabelaya","html_url":"https://github.com/innabelaya","followers_url":"https://api.github.com/users/innabelaya/followers","following_url":"https://api.github.com/users/innabelaya/following{/other_user}","gists_url":"https://api.github.com/users/innabelaya/gists{/gist_id}","starred_url":"https://api.github.com/users/innabelaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innabelaya/subscriptions","organizations_url":"https://api.github.com/users/innabelaya/orgs","repos_url":"https://api.github.com/users/innabelaya/repos","events_url":"https://api.github.com/users/innabelaya/events{/privacy}","received_events_url":"https://api.github.com/users/innabelaya/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95/commits","review_comments_url":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95/comments","review_comment_url":"https://api.github.com/repos/enb-bem/enb-bh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb-bem/enb-bh/issues/95/comments","statuses_url":"https://api.github.com/repos/enb-bem/enb-bh/statuses/a6a1f1015abb518e018a7be07448e9423f189725","head":{"label":"enb-bem:README-update","ref":"README-update","sha":"a6a1f1015abb518e018a7be07448e9423f189725","user":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"repo":{"id":18496773,"name":"enb-bh","full_name":"enb-bem/enb-bh","owner":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-bem/enb-bh","description":"BH support for ENB","fork":false,"url":"https://api.github.com/repos/enb-bem/enb-bh","forks_url":"https://api.github.com/repos/enb-bem/enb-bh/forks","keys_url":"https://api.github.com/repos/enb-bem/enb-bh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-bem/enb-bh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-bem/enb-bh/teams","hooks_url":"https://api.github.com/repos/enb-bem/enb-bh/hooks","issue_events_url":"https://api.github.com/repos/enb-bem/enb-bh/issues/events{/number}","events_url":"https://api.github.com/repos/enb-bem/enb-bh/events","assignees_url":"https://api.github.com/repos/enb-bem/enb-bh/assignees{/user}","branches_url":"https://api.github.com/repos/enb-bem/enb-bh/branches{/branch}","tags_url":"https://api.github.com/repos/enb-bem/enb-bh/tags","blobs_url":"https://api.github.com/repos/enb-bem/enb-bh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-bem/enb-bh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-bem/enb-bh/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-bem/enb-bh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-bem/enb-bh/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-bem/enb-bh/languages","stargazers_url":"https://api.github.com/repos/enb-bem/enb-bh/stargazers","contributors_url":"https://api.github.com/repos/enb-bem/enb-bh/contributors","subscribers_url":"https://api.github.com/repos/enb-bem/enb-bh/subscribers","subscription_url":"https://api.github.com/repos/enb-bem/enb-bh/subscription","commits_url":"https://api.github.com/repos/enb-bem/enb-bh/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-bem/enb-bh/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-bem/enb-bh/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-bem/enb-bh/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-bem/enb-bh/contents/{+path}","compare_url":"https://api.github.com/repos/enb-bem/enb-bh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-bem/enb-bh/merges","archive_url":"https://api.github.com/repos/enb-bem/enb-bh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-bem/enb-bh/downloads","issues_url":"https://api.github.com/repos/enb-bem/enb-bh/issues{/number}","pulls_url":"https://api.github.com/repos/enb-bem/enb-bh/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-bem/enb-bh/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-bem/enb-bh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-bem/enb-bh/labels{/name}","releases_url":"https://api.github.com/repos/enb-bem/enb-bh/releases{/id}","created_at":"2014-04-06T18:59:00Z","updated_at":"2015-05-08T19:29:15Z","pushed_at":"2015-06-19T10:33:51Z","git_url":"git://github.com/enb-bem/enb-bh.git","ssh_url":"git@github.com:enb-bem/enb-bh.git","clone_url":"https://github.com/enb-bem/enb-bh.git","svn_url":"https://github.com/enb-bem/enb-bh","homepage":"","size":1100,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":6,"forks":15,"open_issues":6,"watchers":10,"default_branch":"master"}},"base":{"label":"enb-bem:master","ref":"master","sha":"4276a7ef9fc3e3bdc1cf4a5676aeca699c8c75dd","user":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"repo":{"id":18496773,"name":"enb-bh","full_name":"enb-bem/enb-bh","owner":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-bem/enb-bh","description":"BH support for ENB","fork":false,"url":"https://api.github.com/repos/enb-bem/enb-bh","forks_url":"https://api.github.com/repos/enb-bem/enb-bh/forks","keys_url":"https://api.github.com/repos/enb-bem/enb-bh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-bem/enb-bh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-bem/enb-bh/teams","hooks_url":"https://api.github.com/repos/enb-bem/enb-bh/hooks","issue_events_url":"https://api.github.com/repos/enb-bem/enb-bh/issues/events{/number}","events_url":"https://api.github.com/repos/enb-bem/enb-bh/events","assignees_url":"https://api.github.com/repos/enb-bem/enb-bh/assignees{/user}","branches_url":"https://api.github.com/repos/enb-bem/enb-bh/branches{/branch}","tags_url":"https://api.github.com/repos/enb-bem/enb-bh/tags","blobs_url":"https://api.github.com/repos/enb-bem/enb-bh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-bem/enb-bh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-bem/enb-bh/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-bem/enb-bh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-bem/enb-bh/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-bem/enb-bh/languages","stargazers_url":"https://api.github.com/repos/enb-bem/enb-bh/stargazers","contributors_url":"https://api.github.com/repos/enb-bem/enb-bh/contributors","subscribers_url":"https://api.github.com/repos/enb-bem/enb-bh/subscribers","subscription_url":"https://api.github.com/repos/enb-bem/enb-bh/subscription","commits_url":"https://api.github.com/repos/enb-bem/enb-bh/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-bem/enb-bh/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-bem/enb-bh/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-bem/enb-bh/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-bem/enb-bh/contents/{+path}","compare_url":"https://api.github.com/repos/enb-bem/enb-bh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-bem/enb-bh/merges","archive_url":"https://api.github.com/repos/enb-bem/enb-bh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-bem/enb-bh/downloads","issues_url":"https://api.github.com/repos/enb-bem/enb-bh/issues{/number}","pulls_url":"https://api.github.com/repos/enb-bem/enb-bh/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-bem/enb-bh/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-bem/enb-bh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-bem/enb-bh/labels{/name}","releases_url":"https://api.github.com/repos/enb-bem/enb-bh/releases{/id}","created_at":"2014-04-06T18:59:00Z","updated_at":"2015-05-08T19:29:15Z","pushed_at":"2015-06-19T10:33:51Z","git_url":"git://github.com/enb-bem/enb-bh.git","ssh_url":"git@github.com:enb-bem/enb-bh.git","clone_url":"https://github.com/enb-bem/enb-bh.git","svn_url":"https://github.com/enb-bem/enb-bh","homepage":"","size":1100,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":6,"forks":15,"open_issues":6,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95"},"html":{"href":"https://github.com/enb-bem/enb-bh/pull/95"},"issue":{"href":"https://api.github.com/repos/enb-bem/enb-bh/issues/95"},"comments":{"href":"https://api.github.com/repos/enb-bem/enb-bh/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/enb-bem/enb-bh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb-bem/enb-bh/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/enb-bem/enb-bh/statuses/a6a1f1015abb518e018a7be07448e9423f189725"}}}}