Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olorin37/hbs-cli
Simple, yet usefull handlebars CLI, templates are feeded from YAML (so, JSON too) property file.
https://github.com/olorin37/hbs-cli
cli handlebars handlebars-template json shell template utility yaml
Last synced: about 1 month ago
JSON representation
Simple, yet usefull handlebars CLI, templates are feeded from YAML (so, JSON too) property file.
- Host: GitHub
- URL: https://github.com/olorin37/hbs-cli
- Owner: olorin37
- License: mit
- Created: 2019-12-30T15:03:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T21:57:04.000Z (6 months ago)
- Last Synced: 2024-10-31T11:52:36.936Z (2 months ago)
- Topics: cli, handlebars, handlebars-template, json, shell, template, utility, yaml
- Language: Rust
- Homepage:
- Size: 75.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Simple Handlebars CLI
=====================Simple, but already useful CLI for generating text from handlebars
templates, by feeding them with data from file (YAML parser used is
for it, so JSON is also supported), writen in Rust programming language
(with usage serde_yaml and handlebars crates).Goal
----
The idea is to prepare utility which should be easly used from
shell script.Usage
-----The simplest call:
```bash
hbs-cli >
```
or```bash
hbs-cli -o
```Or with template registration for using them as partials:
```bash
hbs-cli -r 'partials/**/*.hbs'
```Where `` can be ether YAML or JSON (as YAML parser is a
JSON parser too) and `` is handlebars template. Template
is generated on standard output.To see more options call `hbs-cli --help`.
Building
--------```bash
# to install rust toolchain, skip if already installed
rustup toolchain install stablecargo build --release
```License [![badge][license-mit-badge]](LICENSE-MIT)
-------This software is distributed under MIT license. See `LICENSE` file in the root of the repository.
[license-mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg