You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TextTemplateBuilder was introduced because the content of TextTemplate's body was considered heterogeneous. It was a list of either Placeholders or plain text, and I thought it is not worth it to unify those under a single interface (see #74).
Now I see that it is possible to unify placeholders and plain text with addition of one more layer. The template body will consist of TemplateBodyPieces with method #fillOut(ActualArguments, Vocabulary). Those TemplateBodyPieces will encapsulate either a placeholder or plain text.
The text was updated successfully, but these errors were encountered:
TextTemplateBuilder
was introduced because the content ofTextTemplate
's body was considered heterogeneous. It was a list of eitherPlaceholder
s or plain text, and I thought it is not worth it to unify those under a single interface (see #74).Now I see that it is possible to unify placeholders and plain text with addition of one more layer. The template body will consist of
TemplateBodyPiece
s with method#fillOut(ActualArguments, Vocabulary)
. ThoseTemplateBodyPiece
s will encapsulate either a placeholder or plain text.The text was updated successfully, but these errors were encountered: