logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mason.pl - evaluate a mason template and output the result

Additional 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"]}'

Author

       Jonathan Swartz <swartz@pobox.com>

Description

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

Mason 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.

Name

       mason.pl - evaluate a mason template and output the result

See Also

       Mason

Synopsis

          # Evaluate template from STDIN
          mason.pl [mason options] [--args json-string]

          # Evaluate template in string
          mason.pl [mason options] [--args json-string] -e "string"

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

See Also