JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4860
  • Score
    100M100P100Q120905F
  • License MIT

simplest template engine

Package Exports

  • rendy

Readme

Rendy License NPM version Build Status Coverage

Simple template engine compatible with handlebars and mustache.

Install

NPM\_INFO

npm i rendy

How to use?

In ESM

import rendy from 'rendy';

in CommonJS:

const rendy = require('rendy');

API

rendy(template: string, value: Values})

Values is:

type Values = {
    [key: string]: string;
};
rendy('hello {{ value }}, {
    value: 'world' ,
});

// returns
'hello world';

License

MIT