papercraft 1.4 → 2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78c8ccb1c86c1ca23bf5db29174c938015c1137fcd4018f0afd09b298b648e94
4
- data.tar.gz: 196e06b72fef6f750789b64883110a075aef402e34b8616dcc8114c425d1de17
3
+ metadata.gz: 778a543052eef0a1901172f1655da8ca1bfadce65699e70cdb42abf0f690b5da
4
+ data.tar.gz: 2268982f7ff3476073eb40e3b76e4061cde3c521fb68864b47ca46fabda9833b
5
5
  SHA512:
6
- metadata.gz: '0599e7b5340e1dc5afe72f76c930ed0587f1bafdc9b7bac03cb75597efdd8e450faf81012cf16666fe3588ea39aa53ffec6ae14aa3f0002e79036144d3681131'
7
- data.tar.gz: e8b88f6cd76c8a5a10df7bb84e174e7e0d7ff06aac6c30e1d763982ac7b63261a9203e887e0df647fc5ef55248b8239fa75851e77eeb9ef74bc7ce4be9e8a1d0
6
+ metadata.gz: 4360ecfe28aedacb33d6b4b77f1715289c3831a09629cdb398fb16b8319ce603bbd47f565720aca2120efafa9add694bcbd783d06682f72f199844f24a318934
7
+ data.tar.gz: 6fa327527d4221bf2527be387ffc9b9a2a1504d5f91e761793f572eb55f7ddaf3914ee1849f8ab434043bc52f3fc4efd690a130e49c742d413005c0432f88c44
data/CHANGELOG.md CHANGED
@@ -1,3 +1,96 @@
1
+ # 2.14 2025-09-17
2
+
3
+ - Do not escape inner text of style and script tags
4
+
5
+ # 2.13 2025-09-11
6
+
7
+ - Pass level to HTML debug attribute injection proc
8
+
9
+ # 2.12 2025-09-11
10
+
11
+ - Add support for injecting location attributes into HTML tags (for debug purposes)
12
+
13
+ # 2.11 2025-09-11
14
+
15
+ - Add mode param to `Papercraft::Template` wrapper class
16
+
17
+ # 2.10 2025-09-11
18
+
19
+ - Add support for rendering XML, implement `Proc#render_xml`
20
+ - Fix handling of literal strings with double quotes
21
+ - Improve error handling for `Papercraft::Error` exceptions
22
+
23
+ # 2.9 2025-09-02
24
+
25
+ - Tweak generated code to incorporate @byroot's
26
+ [recommendations](https://www.reddit.com/r/ruby/comments/1mtj7bx/comment/n9ckbvt/):
27
+ - Remove call to to_s coercion before calling html_escape
28
+ - Chain calls to `#<<` with emitted HTML parts
29
+
30
+ # 2.8 2025-08-17
31
+
32
+ - Add `#render_children` builtin
33
+ - Rename `#emit_yield` to `#render_yield`
34
+ - Add `Proc#render_cached` for caching render result
35
+
36
+ # 2.7 2025-08-17
37
+
38
+ - Improve source maps and whitespace in compiled code
39
+ - Minor improvements to emit_yield generated code
40
+ - Add support for extensions
41
+
42
+ # 2.6 2025-08-16
43
+
44
+ - Add support for block invocation
45
+
46
+ # 2.5 2025-08-15
47
+
48
+ - Translate backtrace for exceptions raised in `#render_to_buffer`
49
+ - Improve display of backtrace when source map is missing entries
50
+ - Improve handling of ArgumentError raised on calling the template
51
+ - Add `Template#apply`, `Template#compiled_proc` methods
52
+
53
+ # 2.4 2025-08-10
54
+
55
+ - Add Papercraft::Template wrapper class
56
+
57
+ # 2.3 2025-08-10
58
+
59
+ - Fix whitespace issue in visit_yield_node
60
+ - Reimplement and optimize exception backtrace translation
61
+ - Minor improvement to code generation
62
+
63
+ # 2.2 2025-08-09
64
+
65
+ - Update docs
66
+ - Refactor code
67
+
68
+ # 2.1 2025-08-08
69
+
70
+ - Optimize output code: directly invoke component templates instead of calling
71
+ `Papercraft.render_emit_call`. Papercraft is now
72
+ - Optimize output code: use separate pushes to buffer instead of interpolated
73
+ strings.
74
+ - Streamline API: `emit proc` => `render`, `emit str` => `raw`, `emit_markdown`
75
+ => `markdown`
76
+ - Optimize output code: add `frozen_string_literal` to top of compiled code
77
+ - Add more benchmarks (#1)
78
+ - Optimize output code: use ERB::Escape.html_escape instead of CGI.escape_html
79
+ (#2)
80
+ - Fix source map calculation
81
+
82
+ ## 2.0.1 2025-08-07
83
+
84
+ - Fix source map calculation
85
+
86
+ ## 2.0 2025-08-07
87
+
88
+ - Passes all HTML, compilation tests from Papercraft
89
+ - Automatic compilation
90
+ - Plain procs/lambdas as templates
91
+ - Remove everything not having to do with HTML
92
+ - Papercraft: compiled functional templates - they're super fast!
93
+
1
94
  ## 1.4 2025-01-09
2
95
 
3
96
  - Compiler: add support defer