src/cli.js
async function render(template) {
	const content = {
		badges: await badges(argv.context),
		usage: ''
	}

	if (argv.usage) {
		content.usage = readFileSync(resolve(argv.usage))
	}

	const page = await remark().use(gap).use(squeeze).process(template(content))
	process.stdout.write(page.toString())
}
async function render(template) {
	const content = {
		badges: await badges(argv.context),
		usage: ''
	}

	if (argv.usage) {
		content.usage = readFileSync(resolve(argv.usage))
	}

	const page = await remark().use(gap).use(squeeze).process(template(content))
	process.stdout.write(page.toString())
}
async function render ( template ) { const content = { badges : await badges ( argv . context ) , usage : '' } if ( argv . usage ) { content . usage = readFileSync ( resolve ( argv . usage ) ) } const page = await remark ( ) . use ( gap ) . use ( squeeze ) . process ( template ( content ) ) process . stdout . write ( page . toString ( ) ) }
Render the page to stdout
@param  {lodash} template A processed lodash template of the source
Render the page to stdout