This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Commit a12c5c7
committed
fix: use Tree.Root.String() for JS/CSS extraction to avoid html/template escaping
RenderJS() and RenderCSS() were running static assets through
html/template's Execute(), which HTML-escapes < to < in the output.
This broke all for-loops and comparisons in main.js (8 instances),
causing a syntax error that prevented all D3 graphs from rendering.
Same root cause as the template.HTML → template.JS fix: the
text/template → html/template migration in 8f1470b.1 parent 35fb113 commit a12c5c7
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 254 | + | |
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
| 258 | + | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 264 | + | |
271 | 265 | | |
272 | 266 | | |
273 | 267 | | |
| |||
0 commit comments