Crates.io | hdlbr |
lib.rs | hdlbr |
version | 0.1.1 |
source | src |
created_at | 2019-06-17 15:23:35.486206 |
updated_at | 2019-06-17 15:42:09.240199 |
description | Handlebars CLI (Templating by command-line) |
homepage | |
repository | https://github.com/quitoque/hdlbr |
max_upload_size | |
id | 141748 |
size | 4,416 |
hdlbr VARIABLES_FILE TEMPLATE_FILE
Where:
vars.json
:
{
"name": "Foo",
"comments": [
{
"author": "Dracula"
},
{
"author": "Alucard"
}
]
}
template.hbs
:
Hello {{name}}
{{~#each comments}}
{{author}}
{{~/each~}}
Result of hdlbr vars.json template.hbs
:
Hello Foo
Dracula
Alucard
You may use Rust 2018 and Cargo to build:
cargo build --release