2.6.2 • Published 5 years ago

@lyo/ejs v2.6.2

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
5 years ago

@lyo/ejs

A browser-compatible version of ejs built automatically with Lyo.

Version Build Hits

Usage

In a browser

<script src="https://cdn.jsdelivr.net/npm/@lyo/ejs"></script>

<script>
  ejs.promiseImpl(foo);
  ejs.resolveInclude(foo, bar, baz);
  ejs.compile(foo, bar);
  ejs.render(foo, bar, baz);
  ejs.renderFile();
  ejs.Template(foo, bar);
  ejs.clearCache();
  ejs.escapeXML(foo);
  ejs.__express();
</script>

In Node.js

# Install
npm i @lyo/ejs
const ejs = require('@lyo/ejs')

ejs.promiseImpl(foo);
ejs.resolveInclude(foo, bar, baz);
ejs.compile(foo, bar);
ejs.render(foo, bar, baz);
ejs.renderFile();
ejs.Template(foo, bar);
ejs.clearCache();
ejs.escapeXML(foo);
ejs.__express();

Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk

2.6.2

5 years ago