I am trying to get a templating setup, using Mustache. Mustache however to render files on the server side requires the use of
node:fs core module. Workers, however, is limited in what node modules it can support, according to -
https://github.com/cloudflare/workers-sdk/issues/3430#issuecomment-1589351536. So Mustache templates cannot be read on the server side using
Here is my problem, I want to have several HTML templates & partials, in many separate files that I want to render on the server side (using workers). Then send it to the front end.
So, two questions.
a) Is there a workaround/hack allowing me to use Mustache for server-side rendering template files?
b) Can an alternative library/stack or technique help me achieve my goal?