co-template

0.0.0 • Public • Published

Syntax

  • {{id}} replace id with the respective string or stream
  • {{#id}} ... {{/id}} loop over a stream or array, dive into an object's scope.

Block scoping

{{#outer}}{{inner}} {{global}}{{/outer}}
{
  "outer": {
    "inner": "inside"
  },
  "global": "yup"
}
inside yup

Implementation

This is basically a thin wrapper around co-cat which is a streaming stream concatenator.

Readme

Keywords

none

Package Sidebar

Install

npm i co-template

Weekly Downloads

0

Version

0.0.0

License

MIT

Last publish

Collaborators

  • juliangruber