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
|
2025-10-05 14:27:48 +02:00
|
|
|
test empty block
|
|
|
|
|
escape extra space between tag boundaries
|
|
|
|
|
declarations: <!doctype html>
|
|
|
|
|
comments: <!-- foo -->
|
|
|
|
|
attritubes, when bool true, then just the name of the attribute
|
|
|
|
|
implement stringer for the tag
|