11 lines
438 B
Plaintext
11 lines
438 B
Plaintext
rendering types:
|
|
like <br>: inline void
|
|
inline <hr>: block void
|
|
like script: no escaping
|
|
split the validation from the rendering
|
|
take copies of the children to ensure immutability
|
|
explain the immutability guarantee in the Go docs: for children yes, for children references no. The general
|
|
recommendation is not to mutate children. Ofc, creatively breaking the rules is always well appreciated by the
|
|
right audience
|
|
test wrapped templates
|