2 ms·
I sort-of-but-not-quite did this when migrating my old dynamic site to static generation: I used my model API to build a list of all the pages and then faked re
by vidarh 10y ago
I sort-of-but-not-quite did this when migrating my old dynamic site to static generation: I used my model API to build a list of all the pages and then faked requests by building my own request objects that I called my Sinatra app with.
Made for a quick and dirty way of reusing my old code, and means I can still run the dynamic version for dev/testing.