An open API service indexing awesome lists of open source software.

https://github.com/jsreport/jsreport-ejs

EJS templating engine for jsreport
https://github.com/jsreport/jsreport-ejs

Last synced: about 1 year ago
JSON representation

EJS templating engine for jsreport

Awesome Lists containing this project

README

          

**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--

# jsreport-ejs
[![NPM Version](http://img.shields.io/npm/v/jsreport-ejs.svg?style=flat-square)](https://npmjs.com/package/jsreport-ejs)
[![Build Status](https://travis-ci.org/jsreport/jsreport-ejs.png?branch=master)](https://travis-ci.org/jsreport/jsreport-ejs)

[EJS](http://www.embeddedjs.com/) templating engine for jsreport.
See the docs https://jsreport.net/learn/ejs

## Installation
> npm install jsreport-ejs

## Usage
To use `ejs` in for template rendering set `template.engine=ejs` in the rendering request.

```js
{
template: { content: '...', recipe: '...', enginne: 'ejs' }
}
```

## jsreport-core
You can apply this extension also manually to [jsreport-core](https://github.com/jsreport/jsreport-core)

```js
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-ejs')())
```