Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 827 Bytes

File metadata and controls

23 lines (17 loc) · 827 Bytes
layout default
title Preprocess File Content
nav_order 7
permalink /preprocess-file-content
has_children 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.