blowtorch v0.1.2
Blowtorch
This repository is for learning purposes. It may intentionally contain bugs or fail to function properly. The code may be purposefully difficult to read, contain syntax errors, or only be a partial solution. You should not base code off of this and absolutely should not use it in production.
blowtorch src destThe expected setup of the src dir is to have the following:
- A
_pagesdirectory - A
_layoutsdirectory
These directories are special and will be processed separately. All other files will be recursively copied to the destination directory.
Each file within _layouts is a named layout. It will be used as a template for
each page. A layout should have a {{ content }} marker in it that will be
replaced with the content of each page.
Each of the pages will be copied to the destination directory. The content will
be embedded in the layout it specifies. Pages can specify both a layout and
variables to use in a template via a configuration file. The configuration file
should be the same name as the file, but with an underscore before it and a
.json extension. For instance, blog.html would have a configuration file of
_blog.json.
The _site.json file stored within the root of src will be used for the
default configuration for each page.




