README.txt 758 B

123456789101112131415161718192021222324252627
  1. demo1 sample program:
  2. Demonstrates the most basic use of the mustache parser
  3. demo2 sample program:
  4. Demonstrates the use of the mustache parser with a CSV dataset
  5. mustache example program:
  6. Can be used to load a template and data, and process the result.
  7. Output to standard output or file.
  8. The template and JSON value can be loaded from file (using @filename),
  9. or their value can be specified directly on the command-line.
  10. Example usage:
  11. Load template from family.tmpl file, data from family.json file:
  12. ./mustache -d title="my family" -t @family.tmpl -j @family.json
  13. Load template from family.tmpl file, data from family.csv file:
  14. ./mustache -d title="my family" -t @family.tmpl -c family.csv
  15. Use of expressions can be enabled with the -e switch.