practicalli / clojure-web-services

Develop production grade server-side web services and APIs using Clojure and REPL driven development
https://practical.li/clojure-web-services
Creative Commons Attribution Share Alike 4.0 International
11 stars 14 forks source link

reitit jaatya - freeze routes to create a static site #103

Open practicalli-johnny opened 2 years ago

practicalli-johnny commented 2 years ago

https://github.com/lambdaisland/reitit-jaatya

Freeze your reitit routes and create a static site out of it.

Why? This library will allow you to create a static website out of your existing dynamic website as long as you're using reitit ;)

How? Point jaatya to your reitit routes map and let it start the freezing process.

Jaatya will fake an http request and pass it along to the handler to record it's response. If a response is 200 then a new html page is created based on the url route.