New blog post: Building a #router with #HTMLFragments.

https://blog.dwac.dev/posts/html-fragments-routing/

This explorers how we can use HTML fragments to define routes, load them dynamically, and then apply them to the main page content. It talks about more complexities with streaming #HTML (because I didn't learn my lesson last time) and even has a bonus section on shipping an application server _inside_ a #ServiceWorker.

Lots of interesting stuff, I hope you check it out!

HTML Fragments Routing - Devel without a Cause

Let's build a router by fetching each route as an HTML fragment!

@develwithoutacause do you have the code in github (or equivalent) for htmx twitter clone? The linked dev.to articles leads to 404 (possible heroku killed it)

@jjude The routing demo is here:

https://github.com/dgp1130/html-fragments-routing-demo/

And the original #HTMLFragments demo of a Twitter clone is here:

https://github.com/dgp1130/html-fragments-demo

Which links are dead? The post is pretty new, so I would hope anything I referenced is still up, but maybe I typo-d something...

GitHub - dgp1130/html-fragments-routing-demo

Contribute to dgp1130/html-fragments-routing-demo development by creating an account on GitHub.

GitHub
@develwithoutacause Sorry I mistook Doug. There was a link to fragments frameworks post (dev.to/rajasegar/html-over-the-wire-is-the-future-of-web-development-542c) which had a htmx twitter clone link which is broken.

I have been playing with htmx so thought it might be interesting to look into the code.
HTML over-the-wire is a promising future of Web Development

In this post, we are going to take a look at some of the frameworks and libraries which emphasise sen...

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»