JSPM

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

simple template engine

Package Exports

  • rendy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rendy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Rendy

Simple template engine

Install

npm i rendy --save

How to use?

Rendy could be used in browser or node.

Browser version:

<script src="rendy.js"></script>
<script>
    Tmpl    = 'hello {{ where }}';
    result  = rendy(Tmpl, {
        where: 'in browser'
    });
    // returns
    'hello in browser'
</script>

Node version:

var rendy   = require('rendy'),
    Tmpl    = 'hello {{ who }}';
    result  = rendy(Tmpl, {
        who: 'world'
    });
    // returns
    'hello world'

License

MIT