https://github.com/bem-contrib/bem-proxy
:shit: Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM)
https://github.com/bem-contrib/bem-proxy
Last synced: 6 months ago
JSON representation
:shit: Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM)
- Host: GitHub
- URL: https://github.com/bem-contrib/bem-proxy
- Owner: bem-contrib
- License: mit
- Created: 2013-10-18T23:32:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T03:19:02.000Z (over 8 years ago)
- Last Synced: 2024-04-09T15:37:20.774Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bem-proxy
Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM).
[](https://travis-ci.org/zxqfox/bem-proxy)
## Installation
```sh
npm install
npm test
```## Usage
```js
const http = require('http');const BemProxy = require('bem-proxy');
const app = BemProxy({
templates: require('./common.bemhtml.js'),
target: 'http://127.0.0.1:8087',
listen: '3333'
});app.on('listen', address => {
console.log('Proxy server listening on ' + (address.port ? 'port ' + address.port : address));
```## License
MIT