Includes #
In addition to using a single model/base
config file, one can use the quiqr/model/includes/
directory to maintain an easier organization.
You can split up the model/base-file
and use seperate files
for menu
, collections
, dynamics
, and singles
.
Quiqr automatically reads the files in ./quiqr/model/includes/
and
merges these tree inside model/base
.
Each file represents a configuration root object, such as collections.toml for [Collections], menu.toml for [menu], singles.toml for [single] etc…
Each file’s content must be top-level, for example:
The configuration in ./quiqr/model/base.yaml
menu:
- key: pages
title: Pages
menuItems:
- key: about
- key: config
title: settings
menuItems:
- key: config
Equals ./quiqr/model/includes/menu.yaml
- key: pages
menuItems:
- key: about
title: Pages
- key: config
menuItems:
- key: config
title: settings