jkcfg / jk

Configuration as Code with ECMAScript
https://jkcfg.github.io
Apache License 2.0
404 stars 30 forks source link

Expose std in the inline jk execution #191

Open dlespiau opened 5 years ago

dlespiau commented 5 years ago

Extracted from #188.

We currently import specific symbols from std in the inline template (log, write, read) we could, instead, do:

import * as std from '@jkcfg/std/std';

so we don't miss symbols (such as Format) and are future (eg. I'd like to add a logerr that outputs to stderr).

squaremo commented 5 years ago

Just to set out some trade-offs: