Sablon.CLI (sablon v0.4.3)

Copy Markdown View Source

The sablon command line interface.

cat context.json | sablon template.docx output.docx

When no output path is given the rendered document is written to stdout.

The context is a JSON object. A reserved "_sablon" key holds settings rather than template data; its "properties" object becomes the section properties of the render:

{"_sablon": {"properties": {"start_page_number": 42}}, "title": "..."}

Summary

Functions

Entry point of the escript.

Functions

main(argv)

@spec main([binary()]) :: :ok | no_return()

Entry point of the escript.