Skip to content

Commit 31e568f

Browse files
committed
Version 2.22
1 parent 0d4129b commit 31e568f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.22 2025-10-08
2+
3+
- Use `prepend` instead of `include` to extend the `Proc` class
4+
15
# 2.21 2025-10-08
26

37
- Fix `Proc#apply` parameter handling

TODO.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
## Code generation
2-
3-
- Benchmark preallocating the buffer with a capacity of 4096 or 8192 in `Proc#render`.
4-
- for templates of ~2400 bytes, we get ~ 8% speedup
5-
61
## Add missing escaping of attribute values:
72

8-
https://stackoverflow.com/questions/9187946/escaping-inside-html-tag-attribute-value
3+
https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments
4+
5+
- Replace any occurrence of the "&" character by the string "&".
6+
- Replace any occurrences of the U+00A0 NO-BREAK SPACE character by the string " ".
7+
- Replace any occurrences of the "<" character by the string "&lt;".
8+
- Replace any occurrences of the ">" character by the string "&gt;".
9+
- If the algorithm was invoked in the attribute mode, then replace any occurrences of the """ character by the string "&quot;".
910

1011
## API
1112

lib/papercraft/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Papercraft
4-
VERSION = '2.21'
4+
VERSION = '2.22'
55
end

0 commit comments

Comments
 (0)