swell-template

2.0.2 • Public • Published

Swell Template Engine

Implementation is based on the LiquidJs template engine.

Usage:

import TemplateEngine from 'swell-template';

// A Swell client
const client = {
  get: (url, data) => { ... },
  details: {
    currencies: ...,
    currency: ...,
    locale: ...
  }
};

const engine = new TemplateEngine(client);
const rendered = engine.render(template, data);

Readme

Keywords

none

Package Sidebar

Install

npm i swell-template

Weekly Downloads

229

Version

2.0.2

License

MIT

Unpacked Size

61 kB

Total Files

23

Last publish

Collaborators

  • ei