1.1.0 • Published 5 years ago

render-ejs v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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

  • 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

1.1.0

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.0.0

5 years ago