Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 684 Bytes

cli.md

File metadata and controls

39 lines (28 loc) · 684 Bytes
layout title
page
Command Line

Usage: aspect [options] data_file template_name. data_file should be JSON.

Result outputs to STDOUT. Logs and errors output to STDERR.

See aspect --help for more information.

Examples

Render JSON file to STDOUT or file:

aspect path/to/fixture.json path/to/template.tmpl
aspect path/to/fixture.json path/to/template.tmpl >path/to/result.txt

Render data from STDIN (using -):

aspect - path/to/template.tmpl

Read template from STDIN (using -):

aspect path/to/fixture.json -

Lint the template:

aspect --lint path/to/template.tmpl