Deester4x4jr / grav-plugin-import

Used to allow importing of yaml files into grav pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import doesn't always inject the data the same way

Deester4x4jr opened this issue · comments

commented

If we import a single file that is entered as:

imports: file.yaml

the plugin injects the data extracted directly into the imports object. If we import an array of files as:

imports:
    - file1.yaml
    - file2.yaml

the plugin will inject each file's data into corresponding named arrays under the imports object. This is inconsistent and we should be using the latter as the preferred method, to make it easier to consistently recall the data.