New Page

sveltin new page

Create a new page route.

Synopsis

Command used to create a new public page route selecting between a svelte component-based page and a markdown page.

Pages are Svelte components written in .svelte or .svx (for markdown) files. The filename determines the route so, creating a page named “about” will generate the following route /about/+page.(svelte|svx).

Usage

sveltin new page [name] [flags]

Aliases

page, p

Flags

  -h, --help       help for page
  -m, --markdown   Use Markdown in Svelte (mdsvex) to write & compose the page content
  -s, --svelte     Use Svelte to compose the page content

SEE ALSO

Last updated: 07-Feb-2023

Apache 2.0 License @ 2021-present Sveltin.io and contributors .

The Sveltin logos are copyright © Mirco Veltri.