Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 827 Bytes

preprocess-file-content.md

File metadata and controls

23 lines (17 loc) · 827 Bytes
layout title nav_order permalink has_children
default
Preprocess File Content
7
/preprocess-file-content
true

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.