#2639 fandoc::DocElem.add()

SlimerDude Wed 13 Sep

How about adding @Operator to DocElem.add() so you can do things like:

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"))

brian Wed 27 Sep

pushed a fix

Login or Signup to reply.