JSPM

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

simplest 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 License NPM version Dependency Status Build Status

Simple template engine compatible with handlebars and mustache.

Install

NPM_INFO

npm i rendy --save

How to use?

Rendy could be used in browser or node.

Browser version:

<script src="rendy.js"></script>
<script>
    var 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