LiquiDoc 0.8.1
Enabled declaration of variables for parse build steps
- Added a parameter variables: to the
build:
tier of the configuration format
These variables are expressed in templates using the vars. scope - Made corrective edits to various parts of the README
- Added validation of builds:properties:files and permits/enables string, list, or array format
- The attributes file ingest procedure skips non-Hash attribute files (arrays)
(I suspect this will clash with the flattener, but it fixes our problem.) - Removed now-invalid scope admonition
Note was instructing use ofdata.
var scope prefix to differentiate from newvars.
scope prefix from a previous commit. - Added a nested structure variable scope called
data.
to the ingested data object during parse operations:
Due to an apparent limitation in Liquid, if the ingested data is in a structure (hash) rather than an array, in order to access top-tier variables during parse operations, we need to grant those variables a parent scope to reference. This patch leaves existing variables intact but adds a container scope called 'data', which contains an exact replica of all the data ingested from an external file. - Added a regexreplace filter to Liquid, which acts like gsub! in Ruby.