Closed LouisePla closed 1 year ago
at a ToImage level, the inner element can be whatever BlElement.
In a Spec backend we started to write, we did the same as @LouisePla to retrieve the Form
added ToImage>>innerForm
ToImage>>InnerForm returns nil if the request makes no sense or if there is no form. ToImage>>withInnerFormDo: aBlock runs aBlock with the form as argument if the result of sending #form is not nil
added withInnerFormDo: aBlock ifNone: aNoneBlock " aBlock is evaluated with the form as arguments if the result of #innerForm is not nil, else, aNoneBlock is evaluated " to ensure one can manage error cases
It would be nice to get directly the form given to ToImage innerImage: with a form message.
Example:
instead of: