exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

mustach.1.scd (1036B)


      1 mustach(1)
      2 
      3 # NAME
      4 
      5 mustach - Mustache templating command line engine
      6 
      7 # SYNOPSIS
      8 
      9 *mustach* [-s|--strict] JSON TEMPLATE...
     10 
     11 # DESCRIPTION
     12 
     13 Instanciate the TEMPLATE files accordingly to the JSON file.
     14 
     15 If one of the given files is *-*, the standard input is used.
     16 
     17 Option *--strict* make mustach fail if a tag is not found.
     18 
     19 # EXAMPLE
     20 
     21 A typical Mustache template file: *temp.must*
     22 
     23 ```
     24 Hello {{name}}
     25 You have just won {{value}} dollars!
     26 {{#in_ca}}
     27 Well, {{taxed_value}} dollars, after taxes.
     28 {{/in_ca}}
     29 ```
     30 
     31 Given a JSON file: *inst.json*
     32 
     33 ```
     34 {
     35   "name": "Chris",
     36   "value": 10000,
     37   "taxed_value": 6000,
     38   "in_ca": true
     39 }
     40 ```
     41 
     42 Calling the command *mustach inst.json temp.must*
     43 will produce the following output:
     44 
     45 ```
     46 Hello Chris
     47 You have just won 10000 dollars!
     48 Well, 6000.0 dollars, after taxes.
     49 ```
     50 
     51 # LINK
     52 
     53 Site of *mustach*, the *C* implementation: https://gitlab.com/jobol/mustach
     54 
     55 *Mustache format*: http://mustache.github.io/mustache.5.html
     56 
     57 Main site for *Mustache*: http://mustache.github.io/
     58 
     59 JSON: https://www.json.org/
     60