Skip to content

joshmanderson/svelte-blog-hash-router-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 😆

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •