r/WebdevTutorials • • Dec 07 '19

Backend Create static content pages in a few lines of code and a headless CMS

https://youtu.be/Mw2YqB83KKI
44 Upvotes

2 comments sorted by

1

u/StarSyth Dec 08 '19

call me ignorant, how is this easier than using a flat-file based cms like grav? I mean you can use markdown and create pages/blog entries directly from the CLI or via an admin GUI. https://getgrav.org/

1

u/evaluating-you Dec 08 '19

Grav is a flat file CMS that ultimately has a backend that dynamically renders content on demand. Even when using the (pretty awesome) built-in cache, there is back end logic running prior to any output. It still is a coupled CMS. Blua.blue is a headless CMS and meant for delivering to multiple external applications either via push (via webhooks) or pull (via API/SDK) and content can be authored as markdown as well, of course.

BUT: none of that is the point here. This is a proof of concept to generate completely independent static HTML. The output is like you would have written the HTML by hand and results in the fastest possible delivery for the client. This video is more about how to facilitate a webhook is such a way and this can be done with many headless CMS systems or any other aggregating application (but blua.blue is free and open source)