@immutablewebapps/ejs-cli
Render index.html from an EJS template for Immutable Web Apps
Last updated 6 months ago by immutablewebapp .
Apache-2.0 · Original npm · Tarball · package.json
$ cnpm install @immutablewebapps/ejs-cli -g
SYNC missed versions from official npm registry.

Immutable Web App EJS CLI

This module wraps EJS in a CLI for the purposes of rendering the index.html of an Immutable Web App from an index.ejs template and a configuration JSON file.

Getting Started

# install module globally
npm i -g @immutablewebapps/ejs-cli

Usage

iwa-ejs reads an EJS template from stdin and outputs an HTML file to stdout.

# render from local template
cat index.ejs | iwa-ejs --d config.json > index.html

# or remote template
curl http://assets.example.com/v1.2.3/index.ejs | iwa-ejs --d config.json > index.html

Alternatively, use npx

cat index.ejs | npx @immutablewebapps/ejs-cli --d src/json.json > index.html

Disclaimer

This project was primarily created to demonstrate how to setup an Immutable Web App with ng-immutable-example and react-immutable-example.

Current Tags

  • 0.0.2                                ...           latest (6 months ago)

2 Versions

  • 0.0.2                                ...           6 months ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 2
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |