Spirit Paths
Summary
A file path Middleware for the Spirit Core static file generator.
Syntax
Install Spirit Core .
npm install spirit-core
Directory structure
- "test"
- "src"
- "dest"
var SpiritCore = ; var config = src : "src" dest: "dest" ; var spirit = "./test" config ; var spiritData = spirit ; console ;
Properties
spiritData.src
The absolute source path. Defaults to the root directory
spiritData.dest
The absolute destination path.
Defaults to the "rootPath/dest"
.
Configuration
The Middleware can take an optional two configurations
src
The relative source path.
dest
The relative destination path.
var spiritConfig = src: 'some/path/src' dest:'some/path/dest' ;
Handmade in San Francisco California by Alex Ray