Import mustache templates in Function
Hi everyone!
I'm relatively new in Pages/Functions. I'm trying to import some mustache templates in my Function like so:
From what it's my current understanding, it should be possible to include a mustache template as a Text asset by setting a proper bundling rule in wrangler.toml like so:
Anyway, when I run I get the error "No loader is configured for ".mustache" files".
Any ideas? Thank you in advance!
GitHub
GitHub - janl/mustache.js: Minimal templating with {{mustaches}} in...
Minimal templating with {{mustaches}} in JavaScript - janl/mustache.js
Cloudflare Docs
Configuration | Cloudflare Workers docs
Use a
wrangler.toml
configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.0 Replies