Skip to content

tolgaerdonmez/handlebars-hot-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to handlebars-hot-reload 👋

Version Documentation Maintenance License: MIT Twitter: tolgaerdonmez

Description

This CLI aims to render handlebar templates with hot reload functionality for ease of development of handlebar templates.

Installation

npm install --global handlebars-hot-reload

or

yarn global add handlebars-hot-reload

Usage

Usage: handlebars-hot-reload -t <template path> -j <json data path> -o <output path> -s <save output>

Options:
      --help          Show help                                        [boolean]
      --version       Show version number                              [boolean]
  -t, --templatePath  Template path you want to render       [string] [required]
  -j, --dataPath      JSON data to be injected into handlebar template, if this
                      is not given it will search for e.g example.hbs ->
                      example.json                                      [string]
  -p, --port          HTTP Port you want to serve the file              [number]
  -o, --outputPath    Save the created html output to given path        [string]
  -s, --saveOutput    Whether to save the created html output to the same
                      directory as the template, this will override the -o /
                      --outputPath option             [boolean] [default: false]
  -m, --strictMode    Whether to compile handlebar template in strict mode or not
                                                      [boolean] [default: true]

Author

👤 Tolga Erdönmez

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Tolga Erdönmez.

This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

Hot Reloader for Handlebars Template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published