open-index/open-npm huggingface dataset:
npm package: @lyo/ejs
Description: Browser-compatible version of ejs
Latest version: 2.6.2

# @lyo/ejs

A browser-compatible version of [ejs](https://www.npmjs.com/package/ejs) built automatically with [Lyo](https://github.com/bokub/lyo).

[![Version](https://flat.badgen.net/npm/v/@lyo/ejs)](https://www.npmjs.com/package/@lyo/ejs)
[![Build](https://bokub.github.io/lyo/badge-flat.svg)](https://www.npmjs.com/package/@lyo/ejs)
[![Hits](https://data.jsdelivr.com/v1/package/npm/@lyo/ejs/badge)](https://www.jsdelivr.com/package/npm/@lyo/ejs)

## Usage

#### In a browser
```html
<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

```sh
# Install
npm i @lyo/ejs
```

```js
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