mason.pl(1p)

mason.pl1p

Evaluate a mason template and output the result

Usage

mason.pl [mason options] [--args json-string]

mason.pl [mason options] [--args json-string] -e "string"

mason.pl [mason options] [--args json-string] template-file

Overview

Reads a Mason template (component) from STDIN, a string, or a file. Runs the template and outputs the result to STDOUT.

Options

The following Mason options can be specified on the command line:

    --data-dir /path/to/data_dir
    --plugins MyPlugin,MyOtherPlugin

The "comp_root" will be set to the directory of the template file or to a temporary directory if using STDIN. If not specified "data_dir" will be set to a temporary directory.

Options

--args json-string

A hash of arguments to pass to the page component, in JSON form. e.g.

    --args '{"count":5,"names":["Alice","Bob"]}'

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12–13

Author

Jonathan Swartz <[email protected]>

Author

Jonathan Swartz <[email protected]>

From libmason-perl 2.24-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.