Link Search Menu Expand Document

Pods

Export Pod

  • execute
dendron-cli export-pod
  • src/commands/pod.ts
enrichArgs {
    podClass :=
    config = getPodConfig :=
    if !config {
        throw "no-config"
    }
}

execute {
    podClass, config :=
    new podClass().plant(config)
}
  • src/builtin/JSONPod.ts
plant {
    cleanConfig :=
    payload = prepareForExport()
    destPath :=
    write(destPath, payload)
}
  • src/base.ts
prepareForExport {
    @initEngine
    nodes :=
    ...
    return nodes
}