Replies: 1 comment
-
I'm not quite there yet, but I got my Nunjucks templates running in the browser. The biggest hindrance in my opinion are calls of Node.js APIs (path or fs module). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is anyone running eleventy in the browser? Has anyone tried? Any tips on doing it?
Use case
Live preview of CMS content changes.
Background
Live preview of content changes is a killer feature, especially when the content creators/mangers are non-technical. The Sanity/NextJS combo is particually slick.
You could achieve live(ish) previews with eleventy serverless but as it was platform tied and is now depreciated, it's not a great option.
With eleventy v3 and ESM it should (in theroy?) be possible to run an eleventy build entirely in the browser.
Eleventy would need to return HTML, rather than writing to a file. The Programtic API suggests somthing like this could be possible It currently mentions returning JSON.
Anyone got any ideas? Any pointers?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions