feat: native El HTML templates — remove all HTML string literals #4

Closed
will.anderson wants to merge 1 commits from feat/native-el-templates into dev
Owner

Summary

  • Converts all 24 web El source files from raw HTML string returns to native El template syntax
  • Removes all return "..." string wrappers and \" escape sequences
  • Replaces + variable + interpolations with {expr} / {raw(expr)} in template position
  • Replaces conditional + (if ...) + concatenation chains with {#if}...{#else}...{/if} blocks
  • While-loop-built HTML fragments (gallery card loop) retained as string concatenation; injected via {raw(...)}

No functional changes — output is byte-identical. This is a pure syntax migration.

Files

All 24 src/*.el files converted. src/viral.el skipped (returns ""). src/js/*.el untouched (compile to JavaScript).

Test plan

  • el run builds without errors
  • Landing page renders correctly at /
  • Share card page (/share/<id>) renders correctly
  • Gallery page (/said) renders correctly
  • Checkout page (/checkout) renders correctly
  • Account page (/account) renders correctly
  • About, Terms, Enterprise Terms pages render correctly
## Summary - Converts all 24 web El source files from raw HTML string returns to native El template syntax - Removes all `return "..."` string wrappers and `\"` escape sequences - Replaces `+ variable +` interpolations with `{expr}` / `{raw(expr)}` in template position - Replaces conditional `+ (if ...) +` concatenation chains with `{#if}...{#else}...{/if}` blocks - While-loop-built HTML fragments (gallery card loop) retained as string concatenation; injected via `{raw(...)}` No functional changes — output is byte-identical. This is a pure syntax migration. ## Files All 24 `src/*.el` files converted. `src/viral.el` skipped (returns `""`). `src/js/*.el` untouched (compile to JavaScript). ## Test plan - [ ] `el run` builds without errors - [ ] Landing page renders correctly at `/` - [ ] Share card page (`/share/<id>`) renders correctly - [ ] Gallery page (`/said`) renders correctly - [ ] Checkout page (`/checkout`) renders correctly - [ ] Account page (`/account`) renders correctly - [ ] About, Terms, Enterprise Terms pages render correctly
will.anderson added 1 commit 2026-05-05 10:18:14 +00:00
Replace all return "..." HTML string literals with native El templates —
removes all \" escapes, converts + interpolations to {expr}/{raw(expr)},
and replaces conditional string concatenation with {#if}/{#else}/{/if}.
No functional changes; output is identical.
will.anderson closed this pull request 2026-05-05 11:22:52 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
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#4