Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Preprocess File Content

“makes” preprocess all text file content, binary files are skipped. The implementation is borrowed from preprocess, reduced and customised.

The preprocess in “makes” only supports three directives:

  1. @echo
  2. @if
  3. @eval (not in original preprocess)

We retained the two types of syntax from original preprocess:

  1. HTML syntax, for any file with extension .html, .htm, .xml, or .svg.
  2. JavaScript syntax, for any other text file.

There are plenty of examples in dumberjs/new and makesjs/demo2.

Table of contents