Yea, Rib.Route is entirely optional (that was one of the goals behind the change). And you can use the low-level Rib.Shake.writeFileCached to write arbitrary filepath with arbitrary string.
Removed buildHtmlMulti, buildHtml, readSource functions and Source type.
Now you can just do thing <- myFunctionInActionMonad without having to call any rib function. And then do writeFileCached theFilePath $ renderTheThing thing.
New release! https://github.com/srid/rib/releases/tag/0.7.0.0
I started picking my site back up the last few nights; i may upgrade this evening.
Is it still do able to opt out of various things? I want to keep myself up to date, but personally am not (currently) interested in type safe routes
Yea,
Rib.Route
is entirely optional (that was one of the goals behind the change). And you can use the low-levelRib.Shake.writeFileCached
to write arbitrary filepath with arbitrary string.Re: optional/one of the goals. This is why:
Now you can just do
thing <- myFunctionInActionMonad
without having to call any rib function. And then dowriteFileCached theFilePath $ renderTheThing thing
.Cool cool.
I upgraded. No real issues. I am not using the routes system (currently), it mostly just doesn't fit with what I am doing.