Skip to content

LiquiDoc 0.8.1

Compare
Choose a tag to compare
@briandominick briandominick released this 11 Jun 16:21
17edd7b

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 of data. var scope prefix to differentiate from new vars. 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.