# anyengine

> A meta-programming approach to universal templating

Latest version **0.0.1** (published 2018-12-08) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-12-08 |
| First published | 2018-12-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 19 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Benignware |
| Maintainers | rexblack |

## Links

- npm: https://www.npmjs.com/package/anyengine
- npm.io page: https://npm.io/package/anyengine

## Dependencies (9)

- [pretty](https://npm.io/package/pretty.md) ^2.0.0
- [ext-name](https://npm.io/package/ext-name.md) ^5.0.0
- [deepmerge](https://npm.io/package/deepmerge.md) ^2.1.0
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.11
- [object-path](https://npm.io/package/object-path.md) ^0.11.4
- [isbinaryfile](https://npm.io/package/isbinaryfile.md) ^3.0.2
- [app-root-path](https://npm.io/package/app-root-path.md) ^2.0.1
- [parse-function](https://npm.io/package/parse-function.md) ^5.2.9
- [fast-levenshtein](https://npm.io/package/fast-levenshtein.md) ^2.0.6

## Recent versions

- 0.0.1 (latest) — 2018-12-08

## README

# anyengine

A meta-programming approach to universal templating


## API

##### `Engine.configure([options])`

Specify default options

##### `Engine.compile(template, [options])`

Compiles template string

##### `Engine.compileFile(filename, [options], [callback])`

Compiles template file

##### `Engine.render(template, [locals], [options])`

Renders template string

##### `Engine.renderFile(filename, [locals], [options], [callback])`

Renders template file

### Options

| Name            | Type            | Description
|-----------------|-----------------|------------------------------------------------|
| basedir         | `string`          | Specify basedir. Used to resolve partials and data. Defaults to current working dir.
| data            | `string`          | Specify directory where to resolve json data.
| filename        | `string`          | Specify filename when rendering strings. Used to resolve partials and data.
| runtime         | <code>string&#124;function&#124;object </code>         | Specify engine runtime, i.e. `'handlebars'`. If not specified, it is resolved by filename.
| use             | `array`           | Specify middleware, i.e. `[ 'frontmatter' ]`.

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