Processors Overview
Processors are the core extension mechanism in jstatico.
Types of Processors
| Type | Phase | Purpose |
|---|---|---|
| Preprocessor | Input | Transform source files (parse, extract data) |
| Postprocessor | Render | Transform output (templates, minification) |
| Writer | Output | Control how files are written |
Built-in Processors
jstatico includes processors for common tasks:
- Markdown - Convert
.mdto HTML - JSON - Load
_*.jsonas data - HTML - Render Nunjucks templates
- Page Generator - Run
*.processor.jsfiles - Simple Writer - Write files to disk
Customization
Extend jstatico with your own processors:
- Built-in Processors - What's included
- Custom Processors - Write your own
- Auto-Discovery -
_processors/directory - Builder API - Programmatic configuration