Skip to content

feat(templates): parameterise 13 templates with {{key}} placeholders#77

Open
walliai666 wants to merge 1 commit into
nexu-io:mainfrom
walliai666:fix/video-templates
Open

feat(templates): parameterise 13 templates with {{key}} placeholders#77
walliai666 wants to merge 1 commit into
nexu-io:mainfrom
walliai666:fix/video-templates

Conversation

@walliai666

@walliai666 walliai666 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Replace hardcoded copy in frame-bold-poster, frame-bold-signal, frame-build-minimal, frame-creative-voltage, frame-data-chart-nyt, frame-electric-studio, frame-glitch-title, frame-light-leak-cinema, frame-liquid-bg-hero, frame-logo-outro, frame-pentagram-stat, frame-takram-organic, and vfx-text-cursor with {{key}} tokens so agents can inject dynamic content at render time. Array/object values (headline lines, nav items, chart series) are driven by inline <script> blocks reading window.HV_VARS.

adapter-hyperframes: substitute {{key}} tokens before injecting HV_VARS so both mechanisms work side-by-side; arrays/objects are serialised as JSON, strings inserted verbatim.

studio-server: fill {{key}} tokens from the template's first example entry in both the single-template preview and gallery iframe routes, so previews render real content instead of raw token strings.

Resolves #73

Replace hardcoded copy in frame-bold-poster, frame-bold-signal,
frame-build-minimal, frame-creative-voltage, frame-data-chart-nyt,
frame-electric-studio, frame-glitch-title, frame-light-leak-cinema,
frame-liquid-bg-hero, frame-logo-outro, frame-pentagram-stat,
frame-takram-organic, and vfx-text-cursor with {{key}} tokens so
agents can inject dynamic content at render time. Array/object values
(headline lines, nav items, chart series) are driven by inline <script>
blocks reading window.__HV_VARS__.

adapter-hyperframes: substitute {{key}} tokens before injecting
__HV_VARS__ so both mechanisms work side-by-side; arrays/objects are
serialised as JSON, strings inserted verbatim.

studio-server: fill {{key}} tokens from the template's first example
entry in both the single-template preview and gallery iframe routes,
so previews render real content instead of raw token strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk/medium Medium risk size/L Size L (300-699 LOC) type/feature Feature change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hyperframes engine ignores project variables — project-set-var + project-render produces template demo text instead of stored content

2 participants