2025-09-11 20:50:00 +02:00
|
|
|
rendering types:
|
|
|
|
|
like <br>: inline void
|
|
|
|
|
inline <hr>: block void
|
|
|
|
|
like script: no escaping
|
|
|
|
|
split the validation from the rendering
|
2025-09-12 01:58:50 +02:00
|
|
|
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
|