# ejstmpl

> A tiny template system based on EJS templating library

Latest version **0.9.1** (published 2021-12-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install ejstmpl
pnpm add ejstmpl
yarn add ejstmpl
bun add ejstmpl
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.1 |
| Published | 2021-12-07 |
| First published | 2021-11-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | JCloudYu |
| Maintainers | jcloudyu |
| Keywords | Templating, EJS, ESJTpl |

## Links

- npm: https://www.npmjs.com/package/ejstmpl
- Repository: https://github.com/JCloudYu/ejstmpl
- Homepage: https://github.com/JCloudYu/ejstmpl#readme
- Issues: https://github.com/JCloudYu/ejstmpl/issues
- npm.io page: https://npm.io/package/ejstmpl

## Dependencies (1)

- [ejs](https://npm.io/package/ejs.md) ^3.1.6

## Recent versions

- 0.9.1 (latest) — 2021-12-07
- 0.9.0 — 2021-11-03

## README

# EJS Template Engine #
```javascript
const EJSTmpl = require('ejstmpl');

// Define template search root
EJSTmpl.search_root = `${__dirname}/tmpl`;


// Init templates
const b = EJSTmpl.init('/b/b.html');
const tmpl = EJSTmpl.init('/a.html');

// Render template
console.log(tmpl.render({view:b.prepare({MSG:"HI"})}), "\n");

// Release all caches
EJSTmpl.release();
```

---
_Source: https://npm.io/package/ejstmpl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
