Skip to content

Commit

Permalink
Provide more information
Browse files Browse the repository at this point in the history
  • Loading branch information
olorin37 authored Jan 3, 2020
1 parent c0dcb72 commit 5ca355d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
* Simple CLI for Handlebars
* Simple Handlebars CLI (in Rust)

Simple CLI for generating text from handlebars (or Mustache) templates,
by feeding them with data from file (YAML parser used is for it, so JSON
also supported).
also supported), writen in Rust programming language (with usage serde_yaml
and handlebars crates).

** Usage

#+begin_src bash
hbs-cli <properties file> <template file> > <output file>
#+end_src

Where ~<properties file>~ can be ether YAML or JSON (as YAML parser
is a JSON parser too) and ~<template file>~ is handlebars template
(so Mustache templates should work also). Template is generated on
standard output.

** Building

#+begin_src bash
cargo build --release # for release binary
#+end_src

0 comments on commit 5ca355d

Please sign in to comment.