azist / azos

A to Z Sky Operating System / Microservice Chassis Framework
MIT License
213 stars 29 forks source link

Pass-through root attributes for root node inclusion (_include{ WITH }) #814

Closed itadapter closed 1 year ago

itadapter commented 1 year ago

Consider this:

  machine-config-suffix-override=.dev
  process-includes="_include"  
  //this relies on internal include wich needs `machine-config-suffix-override`, but it is NOt seen at the time of include
  //as it is in outer scope
  _include{ file="./hub.sky" pre-process-all-includes=true}

proposed:

  machine-config-suffix-override=.dev
  process-includes="_include"  
  //the `with` clause sets internal root sub-tree BEFORE processing subordinate includes
  _include{ file="./hub.sky" pre-process-all-includes=true with{machine-config-suffix-override=/$machine-config-suffix-override}}

Related: