handlebars-cli-ext

Crates.iohandlebars-cli-ext
lib.rshandlebars-cli-ext
version0.0.0
sourcesrc
created_at2022-01-18 12:32:29.002588
updated_at2022-01-18 12:32:29.002588
descriptionA simple Handlebars CLI interface with some extras
homepagehttps://github.com/simon-bourne/rust-handlebars-cli-ext
repositoryhttps://github.com/simon-bourne/rust-handlebars-cli-ext
max_upload_size
id516185
size24,813
Simon Bourne (simon-bourne)

documentation

README

Handlebars CLI Ext

A really simple CLI wrapper around the handlebars crate with some extra helpers:

  • {{ include "my-file.txt" }}: include the contents of my-file.txt
  • {{ shell "ls -l" }}: Run ls -l and include the captured stdout

Install

cargo install handlebars-cli-ext

Run

handlebars-cli-ext < input.tmpl > output.txt
Commit count: 10

cargo fmt