Fix about page: restore raw string syntax to fix El tokenizer rendering #140

Merged
will.anderson merged 1 commits from fix/about-rendering into dev 2026-05-13 16:46:44 +00:00
Owner

Problem

The El HTML template parser (return { } syntax) mangles text content:

  • Strips spaces between words: "I grew up in Fort Smith""IgrewupinFortSmith"
  • Drops & from HTML entities: '39;, ©copy;
  • Breaks hyphenated attribute names: aria-labelaria - label

This was introduced in commit 5cb13d6 for about.el. All other component files were already fixed by 2553a6b (which converted them to the extern fn el_*() function style). about.el was the only page still using the broken template syntax — confirmed by grep -l "return {" src/*.el.

Fix

Restore about.el to return nav() + "..." raw string syntax, which the El compiler emits verbatim without tokenization.

Scope

Single file change: src/about.el. No logic changes. No other files affected.

## Problem The El HTML template parser (`return { }` syntax) mangles text content: - Strips spaces between words: `"I grew up in Fort Smith"` → `"IgrewupinFortSmith"` - Drops `&` from HTML entities: `'` → `39;`, `©` → `copy;` - Breaks hyphenated attribute names: `aria-label` → `aria - label` This was introduced in commit `5cb13d6` for `about.el`. All other component files were already fixed by `2553a6b` (which converted them to the `extern fn el_*()` function style). `about.el` was the only page still using the broken template syntax — confirmed by `grep -l "return {" src/*.el`. ## Fix Restore `about.el` to `return nav() + "..."` raw string syntax, which the El compiler emits verbatim without tokenization. ## Scope Single file change: `src/about.el`. No logic changes. No other files affected.
will.anderson added 1 commit 2026-05-13 16:46:35 +00:00
Fix about page rendering: restore raw string syntax to fix El tokenizer mangling
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 1m45s
675c467a74
The El HTML template parser (native { } syntax introduced in 5cb13d6) strips
spaces from text nodes, drops & from HTML entities (' → 39;), and breaks
hyphenated attribute names (aria-label → aria - label). All other component
files were already converted to the extern el_*() function style in 2553a6b
which is immune to this issue. about.el was the only page still using the
broken template syntax. Restoring the raw string return style fixes all
rendering defects on /about.
will.anderson merged commit 3d635505bc into dev 2026-05-13 16:46:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron-web#140