Closed moigagoo closed 3 years ago
The !from
tag should be implemented as an extension.
The pre
target can be implemented as part of the same extension. but it seems that it might be useful in other contexts as well, so I propose we add it to the core
I'm proposing the addition of
!from
YAML tag tofoliant.yml
which lets you point to a repository with a Foliant project. As a related addition to the core, a specialpre
target is proposed. Buildingpre
applies the preprocessors and doesn't apply any backend, producing a valid Foliant project with preprocessing required.The
!from
tag is processed in the following way:chapters
section fromfoliant.yml
file from the cloned repository replaces the!from
invocationin
foliant.yml#chapters`. All chapter paths are prepended with the temporary directory path.pre
target.A typical config that uses
!from
tag: