Open robcxyz opened 10 months ago
Allow base methods to be called directly as hooks
Proposal Status: wip
Issue Number: 233
Proposal Doc: base-methods-as-hooks.md
This proposal would allow setting literal values if the first arg is a default method - either if, else, when, or for. All other kwargs fail.
if
else
when
for
this: that foo: - bar - ->: --if this=='that' baz check: assert {{foo[1]}} baz
foo: - bar - ->: --for [1,2,5] {{item}} check: assert {{foo[1][1]}} 2
foo: - bar - ->: --for [1,2,5] {{item}} --merge check: assert {{foo[1]}} 1
See #141
this: that foo: bar: baz bing->: --if this=='that' bang check: assert {{foo[bing]}} bang
Base Methods as Hooks
Allow base methods to be called directly as hooks
Proposal Status: wip
Issue Number: 233
Proposal Doc: base-methods-as-hooks.md
Overview
This proposal would allow setting literal values if the first arg is a default method - either
if
,else
,when
, orfor
. All other kwargs fail.Lists
See #141
Maps