npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

co-template

0.0.0

@juliangruber

npmHomeRepoSnykSocket
Downloads:4
$ npm install co-template
DailyWeeklyMonthlyYearly

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.