textiles-lab / knitout-frontend-js

knitout writing frontend for javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

knitout.Writer instead of knitoutWriter?

ixchow opened this issue · comments

Taking as an example the http module, we see the pattern:

const http = require('http');
let agent = new http.Agent({ keepAlive: true });

Perhaps it is worth doing something similar with knitout?

const knitout = require('knitout');
let k = new knitout.Writer(); //writer object
console.assert(knitout.FRONT_BED === 'f'); //constants for bed names
console.log(knitout.isFrontBed(knitout.parseBedNeedle('fs17').bed)); //utility functions