How about adding @Operator to DocElem.add() so you can do things like:
@Operator
p := Para() { DocText("some text"), Code() { DocText("some code"), }, DocText("etc"), }
It's clearer than writing:
p := Para().add(DocText("some text")).add(Code().add(DocText("some code"))).add(DocText("etc"))
pushed a fix
Login or Signup to reply.
SlimerDude Wed 13 Sep 2017
How about adding
@Operator
to DocElem.add() so you can do things like:It's clearer than writing:
brian Wed 27 Sep 2017
pushed a fix