Skip to content

Instantly share code, notes, and snippets.

@micapam
micapam / preprocess.md
Created January 7, 2018 03:03 — forked from denisdefreyne/preprocess.txt
Nanoc preprocessor use cases

Nanoc preprocessor analysis

Apparent uses

The following apparent uses of the preprocessor show up in sites’ sources (see below):

  • Read from external world into config
    • From environment (e.g. NANOC_ENV)
    • From side-effect-free command output (e.g. nanoc --version)
  • Set attributes based on other attributes, identifier, or raw content
<b>The principal aspect of my personality:</b>
<b>The quality that I desire in a man:</b>
<b>The quality that I desire in a woman:</b>
<b>What I appreciate most about my friends:</b>