New Page

sveltin new page

Create a new page route.

Synopsis

Command used to create a new public page route.

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)

This command allows you to select between a svelte component page and a markdown page.

sveltin new page [name] [flags]

Aliases

p

Options

  -a, --as string   Sveltekit page as Svelte component or markdown via mdsvex. Possible values: svelte, markdown
  -h, --help          help for page

SEE ALSO

Last updated: 06-Sep-2022

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

The Sveltin logos are copyright © Mirco Veltri 2021.