1
0
html/notes.txt

17 lines
645 B
Plaintext
Raw Normal View History

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