Skip to content

Template parser script JS

Denis Zdorovtsov edited this page Dec 8, 2016 · 1 revision

flappy_parse.js [--no-config] -c <config 1>[,<config 2>...] -t

-c Path to configuration queue. All configuration will be merged in next order:

!default_config.json > config 1 > config 2 > ... > extended parameters

If -c value is not presented. Script will search config.json in current and parent directories. To avoid using of any profile use --no-config key.

-t Template directory. All files from directory will be parsed as template files. Result will be saved in out dir.

-o Out directory. Processed files will be saved in out dir. By default out dir = "out/".

-x_ Extended parameters. Could be used to pass configurations via command line.

- Take every file from <template dir>
- Compile all config files and parameters passed in command line
- Call template parser for file name, save final file name to pass it next
- Call template parser for file content
- If file should be saved:
  - Save file to <out dir>
Clone this wiki locally