{"id":17766626,"url":"https://github.com/floatdrop/gulp-bh","last_synced_at":"2025-04-01T13:45:16.645Z","repository":{"id":19885559,"uuid":"23149975","full_name":"floatdrop/gulp-bh","owner":"floatdrop","description":"Gulp plugin for bh files rendering","archived":false,"fork":false,"pushed_at":"2014-08-25T16:51:37.000Z","size":160,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T13:03:07.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floatdrop.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-20T13:39:39.000Z","updated_at":"2014-11-30T14:17:24.000Z","dependencies_parsed_at":"2022-09-02T14:10:14.903Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/gulp-bh","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fgulp-bh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fgulp-bh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fgulp-bh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fgulp-bh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/gulp-bh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651508,"owners_count":20811991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T20:33:31.285Z","updated_at":"2025-04-01T13:45:16.621Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","readme":"# gulp-bh\n\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]\n\nPlugin, that fetches `*.bh.js` files and renders bemjson. This is just a wrapper around [BH](https://github.com/enb-make/bh), all questions about BH should go there.\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar bh = require('gulp-bh');\n\nvar bemjson = {\n    block: 'page',\n    tag: 'html',\n    content: '\u003ch1\u003eHello world!\u003c/ht\u003e'\n};\n\ngulp.src('*.bh.js')\n    .pipe(bh(bemjson, 'index.html'))\n    .pipe(gulp.dest('./dist'));\n```\n\n### API\n\n#### bh(bemjson, filename, [options])\n\nCreates writable stream, that consumes `*.bh.js` files. After `finish` event it will generate single file with compiled HTML from passed `bemjson`.\n\n###### bemjson\nType: `Object`\n\n###### filename\nType: `String`\n\n###### options\nType: `Object`\n\nSee [setOptions](https://github.com/enb-make/bh/blob/master/lib/bh.js#L527-L538) in BH.\n\n## License\n\nMIT (c) 2014 Vsevolod Strukchinsky\n\n[npm-url]: https://npmjs.org/package/gulp-bh\n[npm-image]: http://img.shields.io/npm/v/gulp-bh.svg?style=flat\n\n[travis-url]: http://travis-ci.org/floatdrop/gulp-bh\n[travis-image]: http://img.shields.io/travis/floatdrop/gulp-bh.svg?branch=master\u0026style=flat\n\n[depstat-url]: https://david-dm.org/floatdrop/gulp-bh\n[depstat-image]: http://img.shields.io/david/floatdrop/gulp-bh.svg?style=flat\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fgulp-bh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fgulp-bh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fgulp-bh/lists"}