htemplate-render

0.0.4 • Public • Published

Handlebars template render

Provide an easy, direct and powerful way to renderize an entire directory of templates using handlebars templates (with all the benefits that this implies). All the features of the templetes from handlebars are available to renderize

oclif Version Downloads/week License

Usage

$ npm install -g htemplate-render
$ htemplate-render COMMAND
running command...
$ htemplate-render (-v|--version|version)
htemplate-render/0.0.4 linux-x64 node-v10.19.0
$ htemplate-render --help [COMMAND]
USAGE
  $ htemplate-render COMMAND
...

Commands

htemplate-render help [COMMAND]

display help for htemplate-render

USAGE
  $ htemplate-render help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

htemplate-render render

Render an entire directory

USAGE
  $ htemplate-render render

OPTIONS
  -d, --dir=dir          (Required) directory to render
  -e, --envFile=envFile  (Required) environment file in JSON format
  --dry-run              render only and avoid the modification of the templates

DESCRIPTION
  ...
  Provide the relative directory path with -d
  Also provide a file with all the environments variables in JSON format with -e
  The entire directory will be scanned and all the templates  will be renderized if is necessary
  By default all the templates will be modified. Use the flag --dry-run to only renderize but not update
  the files.

See code: src/commands/render.js

Example:

Template:

Screenshot_20201116_080336

Env file in JSON format:

Screenshot_20201116_083636

Renderized file:

Screenshot_20201116_083826

Package Sidebar

Install

npm i htemplate-render

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

8.74 kB

Total Files

8

Last publish

Collaborators

  • joaquin767