| layout | default |
|---|---|
| title | Preprocess File Content |
| nav_order | 7 |
| permalink | /preprocess-file-content |
| has_children | true |
"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:
@echo@if@eval(not in original preprocess)
We retained the two types of syntax from original preprocess:
- HTML syntax, for any file with extension
.html,.htm,.xml, or.svg. - JavaScript syntax, for any other text file.
There are plenty of examples in dumberjs/new and makesjs/demo2.