Skip to content

💩 Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM)

License

Notifications You must be signed in to change notification settings

bem-contrib/bem-proxy

Repository files navigation

bem-proxy

Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM).

Build Status

Installation

npm install
npm test

Usage

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

About

💩 Pure proxy server to render bemjson with bemhtml onto plain html and so on (BEM)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published