svelte-blog-hash-router-example Svelte Themes

Svelte Blog Hash Router Example

svelte-blog-hash-router-example

An example repository showcasing how one might implement a basic client side hash router in svelte, including the ability to partially match a route to display dynamically generated pages such as blog posts.

This was just a quick project to provide an alternative answer to a stack overflow question, and for me to teach myself and try out some things because I'm brand new to Svelte.

I haven't spent any time 'cleaning' this code, and it is by no means an example of best practices in Svelte or even web development in general :laughing:

Fork and tweak to your heart's content!

FYI, the project was bootstrapped using npx degit sveltejs/template my-svelte-project

Live Demo

https://svelte-blog-hash-router-example-437uuzkc5.now.sh

Running locally

Clone Repo

git clone https://github.com/joshmanderson/svelte-blog-hash-router-example

Install Dependencies

npm i

Start Dev Server

npm run dev

Top categories

Loading Svelte Themes