Skip to content

Header version, copyable templates, twelve new templates - #22

Merged
JoshiCodes merged 6 commits into
masterfrom
demo/version-and-templates
Nov 29, 2026
Merged

JoshiCodes merged 6 commits into
masterfrom
demo/version-and-templates

Conversation

@JoshiCodes

Copy link
Copy Markdown
Owner
  • Version in the header: v1.7.1 next to the logo, linking to that release on npm. Read from package.json.
  • Copied code matches the preview: the code view and "Copy the code" bake the picked options into the source. variant={pattern} becomes variant="lines", an {#if} on an option keeps one branch, unused imports are dropped and the $props() line goes away. An option the script still reads becomes a plain const. When options differ from the defaults, the code view says so and offers a reset.
  • Twelve new templates (27 in total):
    • Application: orders, app shell, notifications
    • Marketing: features, testimonials, newsletter, footer, changelog
    • Forms: onboarding, feedback, file upload

Checked: bun run check and bun run lint are clean. Every template, with default and with changed options, resolves to a file that compiles and has no $props() left.

Next to the logo, linking to that release on npm. It is read from
package.json, so it follows every bump.
Templates take their preview options as props, so a pasted file used to
render its defaults whatever was picked above the preview. The code view
and the copy button now resolve the source first: markup that depends
only on options is evaluated in place, an {#if} on an option keeps one
branch, unused imports are dropped and the $props() line goes away. An
option the script still reads becomes a plain const.
Application: orders, app shell, notifications.
Marketing: features, testimonials, newsletter, footer, changelog.
Forms: onboarding, feedback, file upload.
The gallery thumbnail renders the template on /templates, where the
#overview style anchors had no target and prerendering failed.
@JoshiCodes
JoshiCodes merged commit 6523e7f into master Nov 29, 2026
1 check passed
@JoshiCodes
JoshiCodes deleted the demo/version-and-templates branch November 29, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant