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
- Host: GitHub
- URL: https://github.com/jsreport/jsreport-ejs
- Owner: jsreport
- Created: 2015-06-22T16:08:28.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-08-20T16:57:04.000Z (almost 5 years ago)
- Last Synced: 2025-04-11T12:23:07.371Z (about 1 year ago)
- Language: JavaScript
- Size: 510 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**
--
# jsreport-ejs
[](https://npmjs.com/package/jsreport-ejs)
[](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')())
```