suborbital / sdk

Plugin libraries for languages supported by Suborbital E2 Core
Apache License 2.0
1 stars 1 forks source link

Allow Global Template params #13

Open rnpridgeon opened 1 year ago

rnpridgeon commented 1 year ago

template.toml should allow you to set common parameters globally while allowing individual template specs to override their values.

i.e.

[templates]

api_version = "0.16.3"
lang = "tinygo"
main = "main.go"

[templates.EventNewShipment]
path = "event/receivables"

[templates.EventShipmentProcessed]
path = "event/processing"

[templates.EventShipmentDelivered]
path = "event/confirmations"
api_version = "0.16.5"

[templates.EventNotify]
path = "event/notifications
lang = "javascript"
main = "index.js"