Plugin Demo: Import

Header

imports:
    - 'file1.yaml'
    - 'user://data/file2.json'
    - 'user://data/scratch/file3.json'

File1

Input

var1: val1
var2:
  - var2a: val2a
    var2b: val2b

Output

Via page.header.imports.file1|json_encode(constant('JSON_PRETTY_PRINT')):

null

File 2

Input

{
  "var1": "val1",
  "var2": [{
    "var2a": "val2a",
    "var2b": "val2b"
  }]
}

Output

Via page.header.imports.file2|json_encode(constant('JSON_PRETTY_PRINT')):

null

File 3

Input

{
  "var1": "val1",
  "var2": [{
    "var2a": "val2a",
    "var2b": "val2b"
  }]
}

Output

Via page.header.imports.file3|json_encode(constant('JSON_PRETTY_PRINT')):

null
Profile Photo Aaron Dalton aaron@daltons.ca Aaron Dalton Perlkönig Perlkonig Canada Alberta --05-09 Gamer, programmer, editor, baker