sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

Figure out what block hook lists do - render or block #189

Open robcxyz opened 10 months ago

robcxyz commented 10 months ago

Riight now it is ambiguous what a list block does. It isn't entirely useful to have a list be turned into a block as setting an indented context is not helpful generally. For instance:

a_block->: 
  - foo
  - ->: {{bar}}
  - {{baz}}
  - {{0}} # <- this references the indented context and not helpful

This could be interpreted in 2 ways, we want to render the items or turn them into a block and if they are a block, then it isn't entirely useful to have the indented context.

I think it should be transformed so that strings are rendered and dicts are parsed.