New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

render-ejs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-ejs

render ejs template

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

node-render-ejs

Node.js utility: render ejs template

render-ejs -d '{"info":{"data":"as you like"}}' -t /path/to/template.ejs -f /path/to/content.ext
Table of Contents
  • Requirements
  • Usage
  • License

Requirements

  • development on Node 11.6.0

Usage

CLI

$ render-ejs -d '{"info":{"data":"as you like"}}' -t /path/to/template.ejs -f /path/to/content.ext

Example

  • /path/to/templates/html.ejs
<html>
<body>
  <h1>Hello, world!!</h1>
  <p><%= info.data %></p>
</body>
</html>

render content

$ render-ejs -d '{"info":{"data":"as you like"}}' -t /path/to/templates/html.ejs -f /path/to/content.html

result

<html>
<body>
  <h1>Hello, world!!</h1>
  <p>as you like</p>
</body>
</html>

Install

$ npm install --save-dev render-ejs

License

node-render-ejs is licensed under the MIT license.

Copyright © since 2018 shun@getto.systems

FAQs

Package last updated on 13 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts