cmd: track-from-file
[contents]

Contents

Syntax

The syntax for the track-from-file command is:

nift track-from-file file
nsm track-from-file file

Description

The track-from-file command is for tracking large volumes of new files to be generated during a build with Nift.

The file outlining files to track should have one file specified on each line following the format:

name (title) (content-extension) (template-path) (output-extension)
where:
  • name is the name of the file you want to track;
  • title is the title, if not specified the name is used;
  • content-ext is the content extension to use, if not specified the project-wide content extension is used;
  • template-path is the template path to track with, if not specified the project-wide default template path is used;
  • output-ext is the output extension to track with, if not specified the project-wide output extension is used.

Note: the file with track information can have empty lines and comment lines beginning with '#' and you should quote any names, titles, extensions or paths containing spaces.

Note: track-from-file and track-dir are much faster for tracking large volumes of files than track.

Example

Example of track-from-file being used:

nift track-from-file to-track.txt
nsm track-from-file to-track.txt

Sponsors