As for "library", yes, I am talking about that extra big library, React, as well as Gatsby and Next.js.
Hugo doesn't seem to support REST API, nor GraphQL data sources, yet. Indeed, I did learnt about how to structure folders from Hugo.
I do plan to include at least one API-rendered page, anyway; but I see that it is easily created by <template>
tag + some basic JavaScript.
Or, maybe I should try Express.js + Template engine + wget?
wget -m http://localhost:$PORT
Top comments (2)
Have you tried Eleventy? It's very pluggable. Without knowing your use case, I think you could do what you needed by defining an Eleventy custom filter (a javascript function defined in the .eleventy.js that you can call from your static page that will fire at compile time).
I completely forgot about
*.eleventy.js
; so yes, it is possible.However, I don't think
*.eleventy.js
natively support@babel/node
(Babel) orts-node
(TypeScript), so it will make life a little harder for me.